Hi Arun,
The "Not going to happen error" is a safeguard around some code that
is designed to clean up temp dirs on remote systems. What is
happening in 0.7 is that a unicode string was returned, and a check
for the type of the return was not considering that possibility.
This is assuredly fixed in 0.8/devel, though we haven't backported the
fix, which I'll be doing to the 0.7 branch very shortly as it needs to
be done.
This was the 0.7 function:
def _delete_remote_files(self, conn, files):
''' deletes one or more remote files '''
if os.getenv("ANSIBLE_KEEP_REMOTE_FILES","0") == "1":
# ability to turn off temp file deletion for debug purposes
return
if type(files) == str:
files = [ files ]
for filename in files:
if filename.find('/tmp/') == -1:
raise Exception("not going to happen")
self._low_level_exec_command(conn, "rm -rf %s" % filename, None)
and here it is in 0.8:
def _delete_remote_files(self, conn, files):
''' deletes one or more remote files '''
if os.getenv("ANSIBLE_KEEP_REMOTE_FILES","0") == "1":
# ability to turn off temp file deletion for debug purposes
return
if type(files) in [ str, unicode ]:
files = [ files ]
for filename in files:
if filename.find('/tmp/') == -1:
raise Exception("safeguard deletion, removal of %s is
not going to happen" % filename)
self._low_level_exec_command(conn, "rm -rf %s" % filename, None)
I'll go ahead and apply this fix to the release branch.
--Michael