Commit a8ba9cac by Brian Coca

fixed ansible pull bad options ref, removed print in favor of display

parent f8905013
......@@ -188,9 +188,9 @@ class PullCLI(CLI):
if self.options.purge:
os.chdir('/')
try:
shutil.rmtree(options.dest)
shutil.rmtree(self.options.dest)
except Exception, e:
print >>sys.stderr, "Failed to remove %s: %s" % (options.dest, str(e))
self.display.error("Failed to remove %s: %s" % (self.options.dest, str(e)))
return rc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment