pagerduty module not working

24 views
Skip to first unread message

Nicolas G

unread,
Aug 6, 2014, 3:13:05 PM8/6/14
to ansible...@googlegroups.com
Hi,

I'm trying to use the pagerduty module with no luck, when I run the bellow tasks with the right credentials I get a "failed to create the window: HTTP Error 400: Bad Request" :

TASK:
"""
- name: Create a 1 hour maintenance window in PagerDuty
  pagerduty: name=mydomain user=us...@mydomain.com passwd=mypassword state=running service=MYSERVICE
"""

RESULT:
"""
failed: [localhost] => {"failed": true}
msg: failed to create the window: HTTP Error 400: Bad Request

FATAL: all hosts have already failed -- aborting
"""

According to the pagerduty official documentation (http://developer.pagerduty.com/documentation/rest/errors) , there is an issue with the arguments :

400Bad RequestCaller provided invalid arguments. Please review the response for error details. Retrying with the same arguments will *not* work.
Can some one please advise ? 


Reply all
Reply to author
Forward
0 new messages