Skip to content
Snippets Groups Projects
Commit b18f1581 authored by Gioacchino Vino's avatar Gioacchino Vino
Browse files

Reviewed scan python code

parent 353b2b91
No related branches found
No related tags found
1 merge request!108Updated Python scan code
...@@ -308,6 +308,7 @@ class GVMClient(): ...@@ -308,6 +308,7 @@ class GVMClient():
o.in_use = pl_info.xpath('in_use/text()')[0] o.in_use = pl_info.xpath('in_use/text()')[0]
print(f"pl: {o}") print(f"pl: {o}")
logging.debug(f'Created port list obj. Name: {name}, id: {id}, ports: {ports}') logging.debug(f'Created port list obj. Name: {name}, id: {id}, ports: {ports}')
return o
else: else:
print("error during pl creation") print("error during pl creation")
logging.error(f"ERROR during Port list creation. Status code: {status}, msg: {status_text}") logging.error(f"ERROR during Port list creation. Status code: {status}, msg: {status_text}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment