diff --git a/ChefExtensionHandler/bin/parse_env_variables.py b/ChefExtensionHandler/bin/parse_env_variables.py index 88d0ea54..6afa4723 100644 --- a/ChefExtensionHandler/bin/parse_env_variables.py +++ b/ChefExtensionHandler/bin/parse_env_variables.py @@ -3,7 +3,7 @@ with open(sys.argv[1]) as data_file: data = json.load(data_file, strict=False) data = data['runtimeSettings'][0]['handlerSettings']['publicSettings']['environment_variables'] -comands="" +commands="" for key, value in data.items(): - comands=comands+'export '+key+'="'+value+'";' -print comands + commands=commands+'export '+key+'="'+value+'";' +print commands diff --git a/ChefExtensionHandler/bin/shared.sh b/ChefExtensionHandler/bin/shared.sh index 3ea67fe5..93f94182 100644 --- a/ChefExtensionHandler/bin/shared.sh +++ b/ChefExtensionHandler/bin/shared.sh @@ -27,8 +27,8 @@ get_file_path_to_parse_env_variables(){ } export_env_vars() { - comands="`python $path_to_parse_env_variables \"$1\"`" - eval $comands + commands="`python $path_to_parse_env_variables \"$1\"`" + eval $commands } read_environment_variables(){