Skip to content

Commit

Permalink
fix airgap upload script
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Hachard authored and hezanathos committed May 29, 2024
1 parent 2a37307 commit 7b8af1c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cli/bin/airgap/upload_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def upload_result_file(result_file, CBW_API, verify_ssl=False):
timeout=90,
verify_ssl=verify_ssl
)
result = next(apiResponse)
result = next(apiResponse).json()

# Printing the upload result
if 'error' in result:
Expand All @@ -40,8 +40,8 @@ def upload_result_file(result_file, CBW_API, verify_ssl=False):
print("[+] Upload successful ! Server ID : " + str(result["server_id"]))
else:
print("Upload is done.")
return next(apiResponse).json()

return result

def manager(arguments, CBW_API, verify_ssl=False):

Expand All @@ -62,4 +62,3 @@ def manager(arguments, CBW_API, verify_ssl=False):
else:
for file in options.files:
upload_result_file(file, CBW_API, verify_ssl)

0 comments on commit 7b8af1c

Please sign in to comment.