diff --git a/lib/ansible/modules/cloud/openstack/os_keystone_domain.py b/lib/ansible/modules/cloud/openstack/os_keystone_domain.py index b355971e8b5..dce64f80eb3 100644 --- a/lib/ansible/modules/cloud/openstack/os_keystone_domain.py +++ b/lib/ansible/modules/cloud/openstack/os_keystone_domain.py @@ -106,7 +106,8 @@ id: ''' def _needs_update(module, domain): - if domain.description != module.params['description']: + if module.params['description'] is not None and \ + domain.description != module.params['description']: return True if domain.enabled != module.params['enabled']: return True