Skip to content

Instantly share code, notes, and snippets.

@cmcdevitt
Created May 18, 2018 19:18
Show Gist options
  • Select an option

  • Save cmcdevitt/098b334edd8b6cbd62952cef091dfb49 to your computer and use it in GitHub Desktop.

Select an option

Save cmcdevitt/098b334edd8b6cbd62952cef091dfb49 to your computer and use it in GitHub Desktop.
VR Lab 4
___________________________
Code snippett for part 1
___________________________
task.cmdb_ci = current.cmdb_ci;
task.short_description = 'Emergency change request for high security vulnerability : ' + current.vulnerability.id;
task.work_notes = 'This Change record was created by the system for audit purposes. The Vulnerability Patch for ' + current.vulnerability.id + ' was installed automatically.';
___________________________
Code snippet for part 2
___________________________
task.cmdb_ci = current.cmdb_ci;
task.short_description = 'Standard change request for high security vulnerability ' + current.vulnerability.id;
task.work_notes = 'This Change record was created by the system for manual investigation after an automated scan discovered vulnerability ' + current.vulnerability.id + ' on .' + current.cmdb_ci.name + ' ('+ current.cmdb_ci.class + ')';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment