Skip to content

Commit 00619b5

Browse files
author
Marc Schöchlin
committed
reformat
Signed-off-by: Marc Schöchlin <[email protected]>
1 parent 4e9f2c2 commit 00619b5

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/openstack_workload_generator/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
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

7777
exclusive_group_domain = parser.add_mutually_exclusive_group(required=True)

src/openstack_workload_generator/entities/helpers.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)