diff --git a/files/gvm_library.py b/files/gvm_library.py
index c3e33999b85fdd23d477bc83fa2cb0b7402f23fc..f877e832e2bc18a82a93558f0e305b76b9d17219 100644
--- a/files/gvm_library.py
+++ b/files/gvm_library.py
@@ -308,6 +308,7 @@ class GVMClient():
             o.in_use = pl_info.xpath('in_use/text()')[0]
             print(f"pl: {o}")
             logging.debug(f'Created port list obj. Name: {name}, id: {id}, ports: {ports}')
+            return o
         else:
             print("error during pl creation")
             logging.error(f"ERROR during Port list creation. Status code: {status}, msg: {status_text}")