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

fleetctl: support options --no-block, --block-attempts for destroy command #1666

Merged

Conversation

dongsupark
Copy link
Contributor

Apparently fleetctl destroy command has never supported both options --no-block and --block-attempts, although runDestroyUnit() tries to use the flags. Fix it by defining the options for cmdDestroy.

Note that it's not a regression caused by conversion into cobra. It has been just like that since the beginning. I just happened to find it out yesterday when I was working on #1664 .

@dongsupark dongsupark self-assigned this Aug 19, 2016
@dongsupark dongsupark force-pushed the dongsu/fleetctl-destroy-block-flags branch from 3957aec to 06302c8 Compare August 19, 2016 09:29
@jonboulle
Copy link
Contributor

Huh. Great catch! LGTM

@dongsupark dongsupark force-pushed the dongsu/fleetctl-destroy-block-flags branch from 06302c8 to c0bcf1f Compare August 23, 2016 08:04
@dongsupark
Copy link
Contributor Author

Fixed minor typos: s/stop/destroy/. Will merge it soon.

@dongsupark dongsupark force-pushed the dongsu/fleetctl-destroy-block-flags branch from c0bcf1f to c38bfac Compare August 23, 2016 08:15
…mmand

Apparently fleetctl destroy command has never supported both options
--no-block and --block-attempts, although runDestroyUnit() tries to
use the flags. Fix it by defining the options for cmdDestroy.
@dongsupark dongsupark merged commit d36a004 into coreos:master Aug 23, 2016
@dongsupark dongsupark deleted the dongsu/fleetctl-destroy-block-flags branch August 23, 2016 08:18
dongsupark pushed a commit that referenced this pull request Aug 23, 2016
…flags

fleetctl: support options --no-block, --block-attempts for destroy command
dongsupark pushed a commit that referenced this pull request Aug 23, 2016
…flags

fleetctl: support options --no-block, --block-attempts for destroy command
dongsupark pushed a commit that referenced this pull request Aug 23, 2016
…flags

fleetctl: support options --no-block, --block-attempts for destroy command
dongsupark pushed a commit that referenced this pull request Aug 23, 2016
…flags

fleetctl: support options --no-block, --block-attempts for destroy command
dongsupark pushed a commit that referenced this pull request Aug 23, 2016
…flags

fleetctl: support options --no-block, --block-attempts for destroy command
dongsupark pushed a commit that referenced this pull request Aug 23, 2016
…flags

fleetctl: support options --no-block, --block-attempts for destroy command
dongsupark pushed a commit that referenced this pull request Aug 23, 2016
…flags

fleetctl: support options --no-block, --block-attempts for destroy command
dongsupark pushed a commit that referenced this pull request Aug 23, 2016
…flags

fleetctl: support options --no-block, --block-attempts for destroy command
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants