File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
src/openstack_workload_generator Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 7171 default = "default.yaml" ,
7272 help = "The config file for environment creation, define a path to the"
7373 " yaml file or a subpath in the profiles folder of the tool "
74- "(you can overload the search path by setting the OPENSTACK_WORKLOAD_MANAGER_PROFILES environment variable)"
74+ "(you can overload the search path by setting the OPENSTACK_WORKLOAD_MANAGER_PROFILES environment variable)" ,
7575)
7676
7777exclusive_group_domain = parser .add_mutually_exclusive_group (required = True )
Original file line number Diff line number Diff line change @@ -67,10 +67,15 @@ def load_config(config_file: str):
6767 + f"/../../../profiles/{ config_file } "
6868 )
6969
70- if os .getenv ("OPENSTACK_WORKLOAD_MANAGER_PROFILES" ,None ):
71- potential_profile_file = str (Path (os .getenv ("OPENSTACK_WORKLOAD_MANAGER_PROFILES" )) / Path (config_file ))
72- LOGGER .info ("Environment variable OPENSTACK_WORKLOAD_MANAGER_PROFILES set,"
73- f" searching for potential { potential_profile_file } " )
70+ if os .getenv ("OPENSTACK_WORKLOAD_MANAGER_PROFILES" , None ):
71+ potential_profile_file = str (
72+ Path (os .getenv ("OPENSTACK_WORKLOAD_MANAGER_PROFILES" ))
73+ / Path (config_file )
74+ )
75+ LOGGER .info (
76+ "Environment variable OPENSTACK_WORKLOAD_MANAGER_PROFILES set,"
77+ f" searching for potential { potential_profile_file } "
78+ )
7479
7580 if os .path .exists (config_file ):
7681 Config ._file = config_file
You can’t perform that action at this time.
0 commit comments