New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for tags to the ec2 module #1947
Conversation
json code is available via "module.jsonify(datastructure)" which can clean up the try/except ImportError block. Can you update the pull request to use that? Otherwise looks good to me though bouncing it off some EC2 users wouldn't hurt. In queue for inclusion for 1.1 as we're at feature freeze for 1.0 right now (releasing Friday). Thanks very much! |
Made the change you requested, though I couldn't use jsonify since that is "dumps" and I needed "loads" so I made a new function in module for that. |
I'll look to test this tomorrow. |
Tested and this works fine, thanks. I'd like to suggest we make the documented syntax very clear here, in that it does follow AWS semantics: key[=value] ref: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html Thus with the module, instance_tags='{"Name":""}' works fine. So perhaps line 106 should read: instance_tags='{"Key":"Value"} |
Yeah the DOCUMENTATION header is all inline for all modules in the library/ We don't have that luxury for the inventory plugins yet if you have tried On Mon, Feb 4, 2013 at 8:07 AM, Lester Wade notifications@github.comwrote:
|
Thanks! This is in queue for looking at probably Saturday. Small request -- rather than do merge commits, can you start doing "git pull --rebase" (or just git fetch / git rebase)? This keeps merges out of the history. I would also recommend starting a new branch for each new line of development, so this branch would be like "ec2_add_tags". Another cool thing you may want to look at is "git rebase -i" which allows you to squash changes all into one commit. This pull request is ok as I can review it with "git am" and apply manually, just sharing for future reference! |
Your patience with a git n00b like me is impressive. I will practice those On Thu, Feb 7, 2013 at 8:07 AM, Michael DeHaan notifications@github.comwrote:
|
all merged in, thanks! |
Example: