Don't pass tenant_id for remote group

When security group is from different project, don't pass tenant
Fixes https://github.com/ansible/ansible/issues/69673
Change-Id: I230c41d1ace179390744287102fead5ddf420157
This commit is contained in:
Sagi Shnaidman 2020-05-23 01:31:23 +03:00
parent ad7d6ea668
commit 8e2e5966b7

View File

@ -335,7 +335,7 @@ def main():
else:
project_id = cloud.current_project_id
if project_id:
if project_id and not remote_group:
filters = {'tenant_id': project_id}
else:
filters = None