You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
panos_admpwd.py line 169-170 detects keyword 'success' to interpret if the commit is success, but 'success' also printed in failed cases. Therefore, the script interpret the state wrongly, the job is not actually completed.
For example, "Server error : Commit job was not queued since auto-commit not yet finished successfully. Please use "commit force" to schedule commit job\r\n[edit]"
Expected behavior
It is expected not to count the failed commit command as finished/changed state.
Current behavior
It counted a commit failed as finished/changed.
Possible solution
Change the expected keyword to a more specific keyword in panos_admpwd.py line 169, such as "committed successfully", etc.
Steps to reproduce
request restart system in panos
run the script with retries
make sure the script/the-commit-command run before the system startup auto commit
Screenshots
Context
I am using terraform to trigger ansible to change the admin password in Alibaba Cloud, which do not have option to set admin password at boostrap. This bug makes my further terraform script cannot configure the panos. I am hoping the ansible can retry if it met other error with keyword 'success'
Describe the bug
panos_admpwd.py line 169-170 detects keyword 'success' to interpret if the commit is success, but 'success' also printed in failed cases. Therefore, the script interpret the state wrongly, the job is not actually completed.
For example, "Server error : Commit job was not queued since auto-commit not yet finished successfully. Please use "commit force" to schedule commit job\r\n[edit]"
Expected behavior
It is expected not to count the failed commit command as finished/changed state.
Current behavior
It counted a commit failed as finished/changed.
Possible solution
Change the expected keyword to a more specific keyword in panos_admpwd.py line 169, such as "committed successfully", etc.
Steps to reproduce
Screenshots
Context
I am using terraform to trigger ansible to change the admin password in Alibaba Cloud, which do not have option to set admin password at boostrap. This bug makes my further terraform script cannot configure the panos. I am hoping the ansible can retry if it met other error with keyword 'success'
Your Environment
The text was updated successfully, but these errors were encountered: