Commit b9ba9b16 by Őry Máté

one: remove automatic active_since setting

parent aff6d0b0
......@@ -330,9 +330,6 @@ class Instance(models.Model):
x = parseString(out)
self.vnet_ip = x.getElementsByTagName("IP")[0].childNodes[0].nodeValue.split('.')[3]
state = x.getElementsByTagName("STATE")[0].childNodes[0].nodeValue
if self.state == 'PENDING' and state == 'ACTIVE':
from datetime import datetime
self.active_since = datetime.now()
self.state = state
except:
self.state = 'UNKNOWN'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment