new-openstackcheck-mk2/myOpenstackApp/OpenStackConnection.py

28 lines
765 B
Python
Raw Normal View History

2022-11-06 22:53:32 +00:00
class OpenStackConnection_x:
someProp=0
ks=False
nova=False
catalogData=""
novaURL=""
"""
It's important not to initalise any of the submodules during the init cycle becuase thic causes cirtucalr import loops
The initalise function exists for this reas and should be caled by the client application using this module
"""
def __init__(self) -> None:
pass
def initalise(self) -> None:
from myOpenstackApp.keystone import myopenstack_keystone
from myOpenstackApp.nova import myopenstack_nova
self.ks=myopenstack_keystone(self)
self.nova=myopenstack_nova(self)
pass
def something(_self):
print(1)
_self.ks.getCatalog()
_self.nova.showNovaURL()