8000 Set EC2 BlockDeviceMapping NoDevice property to type dict by johnctitus · Pull Request #866 · cloudtools/troposphere · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Set EC2 BlockDeviceMapping NoDevice property to type dict #866

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

Merged
merged 2 commits into from
Oct 24, 2017

Conversation

johnctitus
Copy link
Contributor

Reverts EC2->BlockDeviceMapping->NoDevice property to type dict, allowing for a value of {} as shown in the documentation under the Unmapping an AMI-defined Device example.

Also adds an example template of unmapping ephemeral devices on an EC2 instance.

Fixes #865

Copy link
Member
@markpeek markpeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My apologies with the regression and thanks for jumping on getting a fix out. I made a comment about adding a NO_DEVICE constant to ec2.py to make it more explicit. If you like it, please update and push a new commit. I'll see about merging and releasing an update tonight.

NoDevice={}),
ec2.BlockDeviceMapping(
DeviceName='/dev/sdc',
NoDevice={}),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to add a NO_DEVICE constant in ec2.py?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's a great idea actually. I'll push it up shortly.

@johnctitus
Copy link
Contributor Author

NO_DEVICE constant has also been added, and the example template updated.

@markpeek markpeek merged commit af04071 into cloudtools:master Oct 24, 2017
@markpeek
Copy link
Member

Thanks!

@anubhav992
Copy link

Hi,
So How can i set the value of NoDevice to Either True or False, if the only possible value left is an empty Dict {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0