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

fleetctl: reenable support for environment variables #1633

Merged
merged 1 commit into from
Jul 14, 2016

Conversation

dongsupark
Copy link
Contributor

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!

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants