Fix issue 7100

Fixes issue: https://github.com/ansible/ansible/issues/7100