Expected Behavior
getting a SiteConfig object with GetSiteConfiguration(site), and then saving it with SaveSiteConfiguration(site) shouldn't change anything about the site's configuration.
Current Behavior
If you get a SiteConfig object with GetSiteConfiguration, then save it with SaveSiteConfiguration, without making any changes to the object, scan schedules will lose their:
Possible Solution
I'm not sure what populates the 'schedules' object on a SiteConfiguration object, but update it so it also fetches names + templates (and make sure SaveSiteConfiguration respects those)
Steps to Reproduce (for bugs)
- Create a scan schedule in a site, with a name and a non-default template.
- run the code below
- look at the scan schedule for your site, see name=n/a, template=default, targets=n/a
Python code that reproduces the issue:
site = client.GetSiteConfiguration(site_summary_object)
client.SaveSiteConfiguration(site)
Context
We're trying to automate some scheduling but we kept finding out schedule details wiped (we were using names to update schedules when required, and can't)
Your Environment
- Nexpose-client-python version: 0.1.7
- Python version: 3.6.5
- Operating System and version: various
- Nexpose product version: 6.5.21
Expected Behavior
getting a SiteConfig object with GetSiteConfiguration(site), and then saving it with SaveSiteConfiguration(site) shouldn't change anything about the site's configuration.
Current Behavior
If you get a SiteConfig object with GetSiteConfiguration, then save it with SaveSiteConfiguration, without making any changes to the object, scan schedules will lose their:
Possible Solution
I'm not sure what populates the 'schedules' object on a SiteConfiguration object, but update it so it also fetches names + templates (and make sure SaveSiteConfiguration respects those)
Steps to Reproduce (for bugs)
Python code that reproduces the issue:
Context
We're trying to automate some scheduling but we kept finding out schedule details wiped (we were using names to update schedules when required, and can't)
Your Environment