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

This commit is contained in:
Brian Coca 2015-07-19 18:28:03 -04:00
parent f8905013cd
commit a8ba9cac3f

View file

@ -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