Permalink
Browse files

Skip new style DTs created from the web app

  • Loading branch information...
1 parent 31e4d53 commit 7e7b04f4a2bc7ad22dedddc29fcf26c436037625 @priteau priteau committed Jun 19, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 pyhantom/system/epu/epu_client.py
@@ -233,6 +233,10 @@ def get_launch_configs(self, user_obj, names=None, max=-1, startToken=None):
ot_lc = LaunchConfigurationType('LaunchConfiguration')
ot_lc.BlockDeviceMappings = AWSListType('BlockDeviceMappings')
+ if 'CreatedTime' not in mapped_def.keys():
+ # This is an LC that was created with the new Phantom API, ignore it
+ continue
+
tm = _get_time(mapped_def['CreatedTime'])
ot_lc.CreatedTime = DateTimeType('CreatedTime', tm)

0 comments on commit 7e7b04f

Please sign in to comment.