From c27978fa93361f94840e0d7cdfe5d4c872cf967f Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 12 Aug 2015 10:26:22 -0400 Subject: [PATCH] minor fixes to pull --- lib/ansible/cli/pull.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/ansible/cli/pull.py b/lib/ansible/cli/pull.py index 0555d1a96a..bf3aaf7e82 100644 --- a/lib/ansible/cli/pull.py +++ b/lib/ansible/cli/pull.py @@ -23,12 +23,11 @@ import random import shutil import socket import sys +import time -from ansible import constants as C -from ansible.errors import AnsibleError, AnsibleOptionsError +from ansible.errors import AnsibleOptionsError from ansible.cli import CLI from ansible.plugins import module_loader -from ansible.utils.display import Display from ansible.utils.cmd_functions import run_cmd ######################################################## @@ -219,7 +218,7 @@ class PullCLI(CLI): fqdn = socket.getfqdn() hostpb = os.path.join(path, fqdn + '.yml') shorthostpb = os.path.join(path, fqdn.split('.')[0] + '.yml') - localpb = os.path.join(path, DEFAULT_PLAYBOOK) + localpb = os.path.join(path, self.DEFAULT_PLAYBOOK) errors = [] for pb in [hostpb, shorthostpb, localpb]: rc = self.try_playbook(pb)