-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Is there a way to determine if firewall-cmd changes a setting? #46
Comments
firewall-cmd is only returning "Success" if the command succeeded. Here are some examples:
I just noticed that the return value is not correct in the warning case. I will fix this. |
Thanks for the quick response! What version was this functionality added?
I'm using 0.3.9 which was stock from Centos7 which doesn't seem to have the same behaviour. |
That has been added with 0.3.12. |
You will get this with the rebase to 0.4.3. |
I'm using firewalld within a devops situation, and it would be helpful to know if firewall-cmd has changed the active configuration after a command has run. Is there a way to do this?
If i run this multiple times I get 0 exit code and the message 'success'
Would you ever consider changing it to 'Success [no change]' or is this out of the scope of firewall-cmds responsibilities?
The text was updated successfully, but these errors were encountered: