Skip to content

Commit

Permalink
chore: Trying to fix openstack manager problems
Browse files Browse the repository at this point in the history
  • Loading branch information
alithethird committed Aug 28, 2024
1 parent e6addaa commit 1118c8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/openstack_cloud/openstack_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def _generate_runner_env(
"""
return templates_env.get_template("env.j2").render(
pre_job_script=str(PRE_JOB_SCRIPT),
dockerhub_mirror=dockerhub_mirror or "",
dockerhub_mirror=str(dockerhub_mirror) or "",
ssh_debug_info=(secrets.choice(ssh_debug_connections) if ssh_debug_connections else None),
)

Expand Down Expand Up @@ -271,7 +271,7 @@ def _generate_cloud_init_userdata(
pre_job_contents=cloud_init_userdata.pre_job_contents,
metrics_exchange_path=str(METRICS_EXCHANGE_PATH),
aproxy_address=aproxy_address,
dockerhub_mirror=cloud_init_userdata.dockerhub_mirror,
dockerhub_mirror=str(cloud_init_userdata.dockerhub_mirror),
)


Expand Down Expand Up @@ -668,7 +668,7 @@ def _create_runner(args: _CreateRunnerArgs) -> None:

env_contents = _generate_runner_env(
templates_env=environment,
dockerhub_mirror=args.config.dockerhub_mirror,
dockerhub_mirror=str(args.config.dockerhub_mirror),
ssh_debug_connections=args.config.charm_state.ssh_debug_connections,
)

Expand All @@ -688,7 +688,7 @@ def _create_runner(args: _CreateRunnerArgs) -> None:
instance_config=instance_config,
runner_env=env_contents,
pre_job_contents=pre_job_contents,
dockerhub_mirror=args.config.dockerhub_mirror,
dockerhub_mirror=str(args.config.dockerhub_mirror),
proxies=args.config.charm_state.proxy_config,
)
cloud_userdata_str = _generate_cloud_init_userdata(
Expand Down

0 comments on commit 1118c8d

Please sign in to comment.