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

fleetctl: reenable support for environment variables#1633

Merged
dongsupark merged 1 commit intocoreos:masterfrom
endocode:dongsu/fleetctl-reenable-env-var
Jul 14, 2016
Merged

fleetctl: reenable support for environment variables#1633
dongsupark merged 1 commit intocoreos:masterfrom
endocode:dongsu/fleetctl-reenable-env-var

Conversation

@dongsupark
Copy link

Fleetctl has not been able to make use of environment variables such as FLEETCTL_ENDPOINT, because of a missing call to getFlagsFromEnv(). That was a regression from commit 848d356 ("fleetctl: convert cli to cobra").

Fix it by calling getFlagsFromEnv() again based on spf13/pflag instead of the native flag.

Reported by @odolbeau.
Fixes #1631

Fleetctl has not been able to make use of environment variables such as
FLEETCTL_ENDPOINT, because of a missing call to getFlagsFromEnv().
That was a regression from commit 848d356 ("fleetctl: convert cli to
cobra").

Fix it by calling getFlagsFromEnv() again based on spf13/pflag instead
of the native flag.

Reported by @odolbeau.
Fixes coreos#1631
@dongsupark dongsupark self-assigned this Jul 13, 2016
@dongsupark dongsupark merged commit 1278ba4 into coreos:master Jul 14, 2016
@dongsupark dongsupark deleted the dongsu/fleetctl-reenable-env-var branch July 14, 2016 11:38
@jonboulle
Copy link
Contributor

awkward - nice catch!

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