misc
This commit is contained in:
@@ -179,6 +179,7 @@ class IaaSClient:
|
||||
return self._make_request('GET', f'workloads/containers/{container_id}')
|
||||
|
||||
def create_container(self, data):
|
||||
# TODO - If the create failes, i.e not enough hosts, we need to catch andhandle the 400 response
|
||||
return self._make_request('POST', 'workloads/containers', data)
|
||||
|
||||
def update_container(self, container_id, data):
|
||||
@@ -195,6 +196,7 @@ class IaaSClient:
|
||||
return self._make_request('GET', f'workloads/virtual_machines/{virtual_machine_id}')
|
||||
|
||||
def create_virtual_machine(self, data):
|
||||
# TODO - If the create failes, i.e not enough hosts, we need to catch andhandle the 400 response
|
||||
return self._make_request('POST', 'workloads/virtual_machines', data)
|
||||
|
||||
def update_virtual_machine(self, virtual_machine_id, data):
|
||||
|
||||
+5
-1
@@ -13,4 +13,8 @@ streamlit
|
||||
aiohttp
|
||||
#sudo apt install python3-rados python3-rbd librados-dev librbd-dev
|
||||
# ln -s /usr/lib/python3/dist-packages/rados* $(python -c 'import site; print(site.getsitepackages()[0])')/
|
||||
# ln -s /usr/lib/python3/dist-packages/rbd* $(python -c 'import site; print(site.getsitepackages()[0])')/
|
||||
# ln -s /usr/lib/python3/dist-packages/rbd* $(python -c 'import site; print(site.getsitepackages()[0])')/
|
||||
|
||||
libvirt-python # I think requires libvirt-dev?
|
||||
# Alternativly apt-get install libvirt-dev
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ def render_list():
|
||||
st.markdown(f"### {host['name']}")
|
||||
st.text(f"Hostname: {host['hostname']}")
|
||||
st.text(f"Region ID: {host['region_id']}")
|
||||
|
||||
# TODO - this bit doesnt work, we arent pulling the labels when we pull the lists of hosts
|
||||
# Display capability tags if available
|
||||
if 'labels' in host and host['labels']:
|
||||
capabilities = []
|
||||
|
||||
Reference in New Issue
Block a user