-
Notifications
You must be signed in to change notification settings - Fork 103
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
Allow for Starting Scan during Blackout #297
Conversation
xml = REXML::Element.new('SiteScanRequest') | ||
xml.add_attributes({ 'session-id' => connection.session_id, | ||
'site-id' => @id, | ||
'sync-id' => sync_id }) | ||
|
||
xml.add_attributes({ 'force' => true }) if blackout_override |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant curly braces around a hash parameter.
xml = make_xml('SiteScanRequest', 'site-id' => site_id) | ||
def scan_site(site_id, blackout_override = false) | ||
xml = make_xml('SiteScanRequest', 'site-id' => site_id) | ||
xml.add_attributes({ 'force' => true }) if blackout_override |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant curly braces around a hash parameter.
xml = REXML::Element.new('SiteScanRequest') | ||
xml.add_attributes({ 'session-id' => connection.session_id, | ||
'site-id' => @id, | ||
'sync-id' => sync_id }) | ||
|
||
xml.add_attributes({ 'force' => true }) if blackout_override |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant curly braces around a hash parameter.
xml = make_xml('SiteScanRequest', 'site-id' => site_id) | ||
def scan_site(site_id, blackout_override = false) | ||
xml = make_xml('SiteScanRequest', 'site-id' => site_id) | ||
xml.add_attributes({ 'force' => true }) if blackout_override |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant curly braces around a hash parameter.
Adding the ability for Starting a Scan during Blackout
Nexpose::Site.scan
~>site.scan(id, sync_id, blackout_override)
Nexpose::Connection.scan_site
~>nsc.scan_site(id, blackout_override)
blackout_override
argument totrue
to override the blackout.true
Nexpose will still do a check on the backend to verify the user has the appropriate level of permissions to bypass the blackout.