Skip to content

Commit

Permalink
FIX Bug on workaround missing OS_AUTH_TYPE
Browse files Browse the repository at this point in the history
os.environ.set doesn't existe, must use os.environ["OS_AUTH_TYPE"] = 
for setting environnement variable
https://docs.python.org/2/library/os.html
  • Loading branch information
william-billaud committed Nov 28, 2018
1 parent 0995299 commit 9749c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnocchiclient/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def build_option_parser(self, description, version):
# fix all the rc files of the world, workaround it here.
if ("OS_PASSWORD" in os.environ and
"OS_AUTH_TYPE" not in os.environ):
os.environ.set("OS_AUTH_TYPE", "password")
os.environ["OS_AUTH_TYPE"] = "password"

loading.register_session_argparse_arguments(parser=parser)
plugin = loading.register_auth_argparse_arguments(
Expand Down

0 comments on commit 9749c67

Please sign in to comment.