Commit ffe1164b by Feanil Patel

Support noop updates for the deployment collection.

parent 22f2a797
......@@ -80,7 +80,18 @@ class MongoConnection:
"to path deployment['plays']['{}']['amis']['{}']"
print msg.format(args.play, args.environment)
pprint(deployment)
raise
if args.noop:
deployment = {
'plays': {
args.play: {
'amis': {
args.environment = ami
},
},
},
}
else:
raise
self.mongo_deployment.save(deployment)
......
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 to comment