Stitching things up
This commit is contained in:
7
dashboard/openstack_utils/connect.py
Normal file
7
dashboard/openstack_utils/connect.py
Normal file
@@ -0,0 +1,7 @@
|
||||
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
|
||||
Reference in New Issue
Block a user