From 9749c6732596934de665ccb7fdd0074f1a865696 Mon Sep 17 00:00:00 2001 From: billaud Date: Wed, 28 Nov 2018 14:30:08 +0100 Subject: [PATCH] FIX Bug on workaround missing OS_AUTH_TYPE 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 --- gnocchiclient/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnocchiclient/shell.py b/gnocchiclient/shell.py index f7cdf69..4d4fddf 100644 --- a/gnocchiclient/shell.py +++ b/gnocchiclient/shell.py @@ -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(