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
{{ message }}
This repository was archived by the owner on May 14, 2021. It is now read-only.
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:
names
templates
targets
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)
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