-
Notifications
You must be signed in to change notification settings - Fork 52
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
fix: openvpn_server - generate #89
Conversation
Thanks for the PR. Sorry for the long delay in responding. Any chance this could get rebased and checks fixed? Thanks. |
done
|
for param in ['shared_key', 'tls']: | ||
before_value = self.pfsense.get_element(param, target_elt) | ||
if before_value is None and self.params[param] == 'generate': | ||
(_, key, stderr) = self.module.run_command('/usr/local/sbin/openvpn --genkey secret /dev/stdout') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
linter say _ is bad -> how should an unused variable be named?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i name it unused
now: https://peps.python.org/pep-0640/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW - that PEP was rejected. We are using dummy
elsewhere in the code, so let's stick with that.
So, the current docs state:
And the config.xml ends up with:
We shouldn't report changed in this case and nothing should get updated on the pfSense box. |
But now if I go to change a different parameter:
|
I think I figure out that issue. |
fix #81