opsgenie-integration icon indicating copy to clipboard operation
opsgenie-integration copied to clipboard

uuid doesn't exist on Windows minions

Open Timond opened this issue 4 years ago • 0 comments

The "UUID" grain does not exist by default on windows minions, causing the modules to fail with a UUID error.

I suggest removing the below code, or setting a default uuid if no grain exists:

data['uuid'] = grains['uuid']

below is exception thrown by the module when run on a windows host with no uuid set:

      ID: create_alert_in_opsgenie
Function: module.run
    Name: opsgenie.post_data
  Result: False
 Comment: Module function opsgenie.post_data threw an exception. Exception: 'uuid'
 Started: 17:20:16.966727
Duration: 15.6 ms
 Changes:   

Timond avatar Dec 02 '20 06:12 Timond