Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
Skip new style DTs created from the web app
Browse files Browse the repository at this point in the history
  • Loading branch information
priteau committed Jun 19, 2013
1 parent 31e4d53 commit 7e7b04f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyhantom/system/epu/epu_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 7e7b04f

Please sign in to comment.