raiseAnsibleError("Problem running vault password script %s (%s). If this is not a script, remove the executable bit from the file."%(' '.join(this_path),e))
stdout,stderr=p.communicate()
vault_pass=stdout.strip('\r\n')
else:
try:
f=open(this_path,"rb")
vault_pass=f.read().strip()
f.close()
except(OSError,IOError)ase:
raiseAnsibleError("Could not read vault password file %s: %s"%(this_path,e))
raiseAnsibleError("Problem running vault password script %s (%s). If this is not a script, remove the executable bit from the file."%(' '.join(this_path),e))
stdout,stderr=p.communicate()
vault_pass=stdout.strip('\r\n')
else:
try:
f=open(this_path,"rb")
vault_pass=f.read().strip()
f.close()
except(OSError,IOError)ase:
raiseAnsibleError("Could not read vault password file %s: %s"%(this_path,e))