mirror of
https://github.com/retspen/webvirtcloud
synced 2026-03-22 10:34:49 +00:00
black and isort lint.
This commit is contained in:
parent
77d031b04f
commit
7aaa018d2c
47 changed files with 1206 additions and 1063 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import base64
|
||||
|
||||
from vrtManager.connection import wvmConnect
|
||||
|
||||
|
||||
|
|
@ -6,12 +7,12 @@ class wvmSecrets(wvmConnect):
|
|||
def create_secret(self, ephemeral, private, secret_type, data):
|
||||
xml = f"""<secret ephemeral='{ephemeral}' private='{private}'>
|
||||
<usage type='{secret_type}'>"""
|
||||
if secret_type == 'ceph':
|
||||
if secret_type == "ceph":
|
||||
xml += f"""<name>{data}</name>"""
|
||||
if secret_type == 'volume':
|
||||
if secret_type == "volume":
|
||||
xml += f"""<volume>{data}</volume>"""
|
||||
if secret_type == 'iscsi':
|
||||
xml += f"""<target>{data}</target>"""
|
||||
if secret_type == "iscsi":
|
||||
xml += f"""<target>{data}</target>"""
|
||||
xml += """</usage>
|
||||
</secret>"""
|
||||
self.wvm.secretDefineXML(xml)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue