You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
250 B
Python
15 lines
250 B
Python
5 years ago
|
#!/usr/bin/python
|
||
|
# #591: call os.getcwd() before AnsibleModule ever gets a chance to fix up the
|
||
|
# process environment.
|
||
|
|
||
|
import os
|
||
|
|
||
|
try:
|
||
|
import json
|
||
|
except ImportError:
|
||
|
import simplejson as json
|
||
|
|
||
|
print(json.dumps({
|
||
|
'cwd': os.getcwd()
|
||
|
}))
|