Files
watcher-visio/dashboard/openstack_utils/connect.py
2025-12-03 12:04:48 +03:00

7 lines
229 B
Python

import openstack
from watcher_visio.settings import OPENSTACK_CLOUD, OPENSTACK_REGION_NAME
def get_connection():
connection = openstack.connect(cloud=OPENSTACK_CLOUD, region_name=OPENSTACK_REGION_NAME)
return connection