Skip to content

CLOUDSTACK: Add option to expunge vm on destroy#382

Closed
boul wants to merge 1 commit intoapache:trunkfrom
schubergphilis:cs-expunge
Closed

CLOUDSTACK: Add option to expunge vm on destroy#382
boul wants to merge 1 commit intoapache:trunkfrom
schubergphilis:cs-expunge

Conversation

@boul
Copy link

@boul boul commented Nov 7, 2014

No description provided.

Copy link
Member

Choose a reason for hiding this comment

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

might be better to set it to False by default then, and check if it's True before passing it.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, the docstring even says it defaults to False.

@boul
Copy link
Author

boul commented Nov 12, 2014

Check, changed the default to be False and only passing the arg when True as Cloudstack defaults to False so there is no need to send False to Cloudstack, this way it should also work with older CS versions which do not expose this feature.

Copy link
Member

Choose a reason for hiding this comment

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

even better with:

if ex_expunge:

Copy link
Author

Choose a reason for hiding this comment

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

Less is more :) Done.

@asfgit asfgit closed this in 680e23b Nov 13, 2014
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