diff --git a/lib/ansible/modules/extras/monitoring/pagerduty.py b/lib/ansible/modules/extras/monitoring/pagerduty.py index 5ca33717dc..42101bae1e 100644 --- a/lib/ansible/modules/extras/monitoring/pagerduty.py +++ b/lib/ansible/modules/extras/monitoring/pagerduty.py @@ -131,9 +131,12 @@ EXAMPLES=''' desc=deployment ''' -import json import datetime import base64 +try: + import json +except ImportError: + import simplejson as json def auth_header(user, passwd, token): if token: