Change-Id: Iae943e2a3b26b8eed616509ec9a3a4cbc493aa6e
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
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)
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()
http_code, resp = self._http.get2_cmd(
"{}/{}".format(self._apiBase, uuid)
)
- if not uuid:
+ else: # if not uuid
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
- pylint
+ pylint==3.2.2
commands =
pylint -E osmclient/