PaloAltoNetworks / xsoar-panos-upgrade-automation

XSOAR Content for managing the PAN-OS Upgrade process.
ISC License
2 stars 4 forks source link

pan-os-assurance-run-snapshot command arg"check_list" is "snapshot_list" in code #28

Closed GrantGabbert closed 3 months ago

GrantGabbert commented 6 months ago

Describe the bug

For the integration command, pan-os-assurance-run-snapshot, the "check_list" argis referred to as "snapshot_list" in the python code.

Expected behavior

The xsoar arg should match the arg in the code.

Current behavior

Due to the arg names not matching, an exception is thrown.

Error from PAN_OS_Upgrade_Assurance is : Script failed to run: 
Error: [Traceback (most recent call last):

   File "<string>", line 313, in <module>
   File "<string>", line 301, in main
   File "<string>", line 251, in command_run_snapshot
 TypeError: run_snapshot() got an unexpected keyword argument 'check_list'
] (2604) (2603)

Possible solution

Change the code to match the arg name.

Steps to reproduce

Run the pan-os-assurance-run-snapshot command with the check_list arg set

Context

Can't dynamically change the snapshot options

Your Environment