Skip to content

Commit 327e61c

Browse files
committed
Remove unused get_cloud_connection and get_cloud_project functions
These functions are no longer used after migrating compute.py and baremetal.py to use setup_cloud_environment() from osism.tasks.openstack. AI-assisted: Claude Code Signed-off-by: Christian Berendt <berendt@osism.tech>
1 parent f143e63 commit 327e61c

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

osism/commands/__init__.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1 @@
11
# SPDX-License-Identifier: Apache-2.0
2-
3-
from functools import lru_cache
4-
import keystoneauth1
5-
import openstack
6-
7-
8-
@lru_cache
9-
def get_cloud_connection(profile="admin"):
10-
try:
11-
conn = openstack.connect(cloud=profile)
12-
except keystoneauth1.exceptions.auth_plugins.MissingRequiredOptions:
13-
pass
14-
15-
return conn
16-
17-
18-
@lru_cache
19-
def get_cloud_project(project_id):
20-
conn = get_cloud_connection()
21-
return conn.identity.get_project(project_id)

0 commit comments

Comments
 (0)