summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Matias <matias@ufscar.br>2017-01-04 14:57:00 -0200
committerToshio Kuratomi <a.badger@gmail.com>2017-01-04 16:47:43 -0800
commitd51064a05ecc24046e35e065a071daa7a0d58b84 (patch)
tree7e853210287f8a21997ea94e3fb6854d71c7146d
parent95b59cd76c7821eacd38d736c60e902e43e289ed (diff)
downloadansible-d51064a05ecc24046e35e065a071daa7a0d58b84.tar.gz
os_user: fix typo (self is not defined)
-rw-r--r--lib/ansible/modules/cloud/openstack/os_user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/cloud/openstack/os_user.py b/lib/ansible/modules/cloud/openstack/os_user.py
index 2ef4fe75e9..7134e0cdcc 100644
--- a/lib/ansible/modules/cloud/openstack/os_user.py
+++ b/lib/ansible/modules/cloud/openstack/os_user.py
@@ -223,7 +223,7 @@ def main():
if not password:
msg = ("update_password is %s but a password value is "
"missing") % update_password
- self.fail_json(msg=msg)
+ module.fail_json(msg=msg)
default_project_id = None
if default_project:
default_project_id = _get_default_project_id(cloud, default_project)