diff --git a/lib/ansible/plugins/lookup/etcd.py b/lib/ansible/plugins/lookup/etcd.py index 190b214ab1..25a71aa2ac 100644 --- a/lib/ansible/plugins/lookup/etcd.py +++ b/lib/ansible/plugins/lookup/etcd.py @@ -34,7 +34,7 @@ if os.getenv('ANSIBLE_ETCD_URL') is not None: ANSIBLE_ETCD_VERSION = 'v1' if os.getenv('ANSIBLE_ETCD_VERSION') is not None: - ANSIBLE_ETCD_URL = os.environ['ANSIBLE_ETCD_VERSION'] + ANSIBLE_ETCD_VERSION = os.environ['ANSIBLE_ETCD_VERSION'] class Etcd: def __init__(self, url=ANSIBLE_ETCD_URL, version=ANSIBLE_ETCD_VERSION,