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.
SaveSiteConfiguration doesn't save site blackouts.
Expected Behavior
Specific site blackouts should be saved.
Current Behavior
A site blackout is not included when saved.
Possible Solution
Similar to the tags not being populated. Likely need to update nexpose_site.py
Steps to Reproduce (for bugs)
Python code that reproduces the issue:
# Load configuration for a site based on site IDconfig=session.GetSiteConfiguration(site_id)
new_ip_list= []
foripinip_list:
new_ip_list.append(nexpose.Range(ip, ''))
# Assign new IPs to the hosts attribute.config.hosts=new_ip_listtry:
session.SaveSiteConfiguration(config)
print("[+] Successfully saved IPs to site: {0} (Site ID: {1})".format(config.name, config.id))
exceptExceptionase:
print("[-] Error saving IPs to site: {0} (Site ID: {1})".format(config.name, config.id))
print("EXCEPTION: {0}".format(e))
Context
Need to save all details of a site when updating it.
SaveSiteConfiguration doesn't save site blackouts.
Expected Behavior
Specific site blackouts should be saved.
Current Behavior
A site blackout is not included when saved.
Possible Solution
Similar to the tags not being populated. Likely need to update nexpose_site.py
Steps to Reproduce (for bugs)
Python code that reproduces the issue:
Context
Need to save all details of a site when updating it.
Your Environment