From a8ba9cac3fd8ab797d8510cde25810f89c101167 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Sun, 19 Jul 2015 18:28:03 -0400 Subject: [PATCH] fixed ansible pull bad options ref, removed print in favor of display --- lib/ansible/cli/pull.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/cli/pull.py b/lib/ansible/cli/pull.py index a4bb1218228..569d5299a67 100644 --- a/lib/ansible/cli/pull.py +++ b/lib/ansible/cli/pull.py @@ -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