Skip to content

Commit

Permalink
Fixed the account_id issue (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
athiruma authored Nov 20, 2024
1 parent 02fb275 commit fd42df1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self):
if hasattr(self.env_config, 'IBM_ACCOUNT_ID'):
self.account_id = self.env_config.IBM_ACCOUNT_ID
else:
self.account_id = self.env_config.environment_variables_dict.get('ACCOUNT_ID')
self.account_id = self.env_config.environment_variables_dict.get('IBM_ACCOUNT_ID')
if hasattr(self.env_config, 'IBM_CLOUD_API_KEY'):
self.__api_key = self.env_config.IBM_CLOUD_API_KEY
else:
Expand Down
4 changes: 2 additions & 2 deletions jenkins/clouds/ibm/hourly/tagging/tagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ def get_podman_run_cmd(volume_mounts: list = None, **kwargs):
'log_level': "INFO", 'policy': 'tag_baremetal', "PUBLIC_CLOUD_NAME": "IBM", "tag_custom": tag_custom}

baremetal_cmd = get_podman_run_cmd(volume_mounts=volume_mounts_targets, **input_env_keys)
# run_cmd(baremetal_cmd)
run_cmd(baremetal_cmd)

run_cmd("echo Run IBM tag Virtual Machines")
input_env_keys['policy'] = 'tag_vm'
virtual_machine_cmd = get_podman_run_cmd(volume_mounts=volume_mounts_targets, **input_env_keys)
# run_cmd(virtual_machine_cmd)
run_cmd(virtual_machine_cmd)

# Run tag resources
run_cmd("echo Run tag resources command")
Expand Down

0 comments on commit fd42df1

Please sign in to comment.