|
@@ -14,6 +14,8 @@ except ImportError: # python 2
|
|
|
from urlparse import urlparse
|
|
from urlparse import urlparse
|
|
|
from urlparse import urljoin
|
|
from urlparse import urljoin
|
|
|
|
|
|
|
|
|
|
+from datetime import datetime
|
|
|
|
|
+
|
|
|
from keystoneclient.v3.regions import Region
|
|
from keystoneclient.v3.regions import Region
|
|
|
|
|
|
|
|
import novaclient.exceptions as novaex
|
|
import novaclient.exceptions as novaex
|
|
@@ -366,7 +368,7 @@ class OpenStackInstance(BaseInstance):
|
|
|
"""
|
|
"""
|
|
|
Get the instance creation time
|
|
Get the instance creation time
|
|
|
"""
|
|
"""
|
|
|
- return self._os_instance.created
|
|
|
|
|
|
|
+ return datetime.strptime(self._os_instance.created, '%Y-%m-%dT%H:%M:%SZ')
|
|
|
|
|
|
|
|
def reboot(self):
|
|
def reboot(self):
|
|
|
"""
|
|
"""
|