return curl_cmd
def get_cmd(self, endpoint):
-
data = BytesIO()
curl_cmd = self._get_curl_cmd(endpoint)
curl_cmd.setopt(pycurl.HTTPGET, 1)
def create_pdu_dictionary(
name, pdu_type, interface, description, vim_account, descriptor_file, update=False
):
-
logger.debug("")
pdu = {}
project="admin",
**kwargs
):
-
self._user = user
self._password = password
self._project = project
admin_status="ENABLED",
wait=False,
):
-
self._logger.debug("")
self._client.get_token()
nst = self._client.nst.get(nst_name)
return f_name
def pkg_get(self, pkgtype, name, repo, version, filter):
-
pkg_name = self.get_pkg(pkgtype, name, repo, filter, version)
if not pkg_name:
raise ClientException("Package not found")
if user.get("set-project"):
# Remove project and insert project role mapping
for set_project in user["set-project"]:
-
set_project_clean = [m.strip() for m in set_project.split(",")]
project, roles = set_project_clean[0], set_project_clean[1:]