Schedules were not being parsed from API responses into the SiteConfiguration. This caused calls to SaveSite to remove any existing schedules. This commit stores the schedule elements into the SiteConfiguration, and dumps them back in when AsXML is called.
Note: The Schedule XML elements remain as XML elements, they are not parsed into a dictionary attribute or anything. This commit won't help much on creating or modifying schedules via the lib, but it makes it so that SaveSiteConfiguration doesn't destroy existing schedules.
Motivation and Context
I want to be able to update assets within the site without removing scan schedules.
How Has This Been Tested?
Created a scan schedule, used the library to modify the asset list, ensured that the previous schedules were not removed.
Description
Schedules were not being parsed from API responses into the SiteConfiguration. This caused calls to SaveSite to remove any existing schedules. This commit stores the schedule elements into the SiteConfiguration, and dumps them back in when AsXML is called.
Note: The Schedule XML elements remain as XML elements, they are not parsed into a dictionary attribute or anything. This commit won't help much on creating or modifying schedules via the lib, but it makes it so that SaveSiteConfiguration doesn't destroy existing schedules.
Motivation and Context
I want to be able to update assets within the site without removing scan schedules.
How Has This Been Tested?
Created a scan schedule, used the library to modify the asset list, ensured that the previous schedules were not removed.
Types of changes
Bug Fix