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

fleetctl: check for empty input unit strings #1475

Merged
merged 2 commits into from
Mar 10, 2016

Conversation

dongsupark
Copy link
Contributor

If no unit name is given for fleetctl commands like destroy, load,
start, stop, submit, and unload, then return with exit code 0,
printing out a soft warning message to stderr.

Fixes: #1443

/cc @kayrus @tixxdz @jonboulle
(A new revision of #1461)

@tixxdz
Copy link
Contributor

tixxdz commented Mar 9, 2016

@dongsupark could you please rebase this one!

@dongsupark dongsupark force-pushed the dongsu/fleetctl-error-empty-units branch from e613e8c to 69abb9f Compare March 9, 2016 11:54
@dongsupark
Copy link
Contributor Author

@tixxdz rebased.

@tixxdz
Copy link
Contributor

tixxdz commented Mar 9, 2016

thanks! lgtm

@jonboulle
Copy link
Contributor

nit: Can you reorder the commits? Add the tests, then the new code. That way, it's clear that the new code isn't changing behaviour from the existing..

Dongsu Park added 2 commits March 10, 2016 10:54
Check that the return value is 0, when the following commands run
without any input unit names: destroy, load, start, stop, and unload.
If no unit name is given for fleetctl commands like destroy, load,
start, stop, submit, and unload, then return with exit code 0,
printing out a soft warning message to stderr.

Fixes: coreos#1443
@dongsupark dongsupark force-pushed the dongsu/fleetctl-error-empty-units branch from 69abb9f to 80d37bb Compare March 10, 2016 10:16
@dongsupark
Copy link
Contributor Author

@jonboulle done.

@tixxdz
Copy link
Contributor

tixxdz commented Mar 10, 2016

@jonboulle I guess this one reached its final form ? if so feel free to merge it, otherwise just ignore and I'll do it later. Thank you!

jonboulle added a commit that referenced this pull request Mar 10, 2016
fleetctl: check for empty input unit strings
@jonboulle jonboulle merged commit 04d539f into coreos:master Mar 10, 2016
@dongsupark dongsupark deleted the dongsu/fleetctl-error-empty-units branch April 5, 2016 09:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants