Skip to content
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

Add backup endpoint functionality (os-api-backup OPNsense plugin requ… #11

Merged
merged 3 commits into from
Apr 3, 2022

Conversation

monstermichl
Copy link
Contributor

Add BackupClient to use the backup endpoint of OPNsense (os-api-backup plugin required). This endpoint allows to retrieve the backup XML.

Copy link
Owner

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay in reviewing this. The code functionally looks fine to me, I just noticed the docstring for the download method looks like it has a copy paste error. If you update that I think we can go ahead and merge this.

Comment on lines 33 to 34
:returns: A dict representing the current status of gateways
:rtype: dict
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs an update as this isn't returning a dict or the status of the gateways.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, just updated the documentation.

@mtreinish mtreinish merged commit fdf54a7 into mtreinish:main Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants