mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
fixed ansible pull bad options ref, removed print in favor of display
This commit is contained in:
parent
f8905013cd
commit
a8ba9cac3f
1 changed files with 2 additions and 2 deletions
|
@ -188,9 +188,9 @@ class PullCLI(CLI):
|
||||||
if self.options.purge:
|
if self.options.purge:
|
||||||
os.chdir('/')
|
os.chdir('/')
|
||||||
try:
|
try:
|
||||||
shutil.rmtree(options.dest)
|
shutil.rmtree(self.options.dest)
|
||||||
except Exception, e:
|
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
|
return rc
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue