Change-Id: I4cfe351acc7c0ce092236f8f55cd369063b69181
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
if not filter or k in filter:
table.add_row([k, utils.wrap_text(text=json.dumps(v, indent=2), width=100)])
if not filter or k in filter:
table.add_row([k, utils.wrap_text(text=json.dumps(v, indent=2), width=100)])
- nsopdata = ctx.obj.ns.get_opdata(ns["id"])
- nsr_optdata = nsopdata["nsr:nsr"]
- for k, v in list(nsr_optdata.items()):
- if not filter or k in filter:
- table.add_row([k, utils.wrap_text(json.dumps(v, indent=2), width=100)])
print_output.print_output(output, table.field_names, table._rows)
print_output.print_output(output, table.field_names, table._rows)
message = f"The following commands or options are only supported with the version v1 of OSM SOL005': {what}"
elif version == "sol005_v2":
message = f"The following commands or options are only supported with the version v2 of OSM SOL005': {what}"
message = f"The following commands or options are only supported with the version v1 of OSM SOL005': {what}"
elif version == "sol005_v2":
message = f"The following commands or options are only supported with the version v2 of OSM SOL005': {what}"
+ else:
+ message = f"The following commands or options are only supported with the version {version} of OSM SOL005': {what}"
fullclassname = obj.__module__ + "." + obj.__class__.__name__
if fullclassname != "osmclient.{}.client.Client".format(version):
raise ClientException(message)
fullclassname = obj.__module__ + "." + obj.__class__.__name__
if fullclassname != "osmclient.{}.client.Client".format(version):
raise ClientException(message)
or package_handling.SOL004_TOSCA == package_type
):
the_package = SOL004Package(package_folder)
or package_handling.SOL004_TOSCA == package_type
):
the_package = SOL004Package(package_folder)
+ else:
+ raise ClientException(f"Unknown package type: {package_type}")
the_package.create_or_update_metadata_file()
the_package.create_or_update_metadata_file()
version = resp.split()[2]
date = resp.split()[4]
return "{} {}".format(version, date)
version = resp.split()[2]
date = resp.split()[4]
return "{} {}".format(version, date)
-
- def set_default_params(self, **kwargs):
- host = kwargs.pop("host", None)
- if host is not None:
- self._host = host
- port = kwargs.pop("port", None)
- if port is not None:
- self._so_port = port
- self._http_client.set_query_admin(**kwargs)
http_code, resp = self._http.get2_cmd(
"{}/{}".format(self._apiBase, uuid)
)
http_code, resp = self._http.get2_cmd(
"{}/{}".format(self._apiBase, uuid)
)
http_code, resp = self._http.get2_cmd(
"{}/{}/{}/{}".format(self._apiBase, uuid, project_name, ns_id)
)
http_code, resp = self._http.get2_cmd(
"{}/{}/{}/{}".format(self._apiBase, uuid, project_name, ns_id)
)
deps = {[testenv]deps}
-r{toxinidir}/requirements-dev.txt
-r{toxinidir}/requirements-test.txt
deps = {[testenv]deps}
-r{toxinidir}/requirements-dev.txt
-r{toxinidir}/requirements-test.txt
commands =
pylint -E osmclient/
commands =
pylint -E osmclient/