diff options
Diffstat (limited to 'osprofiler/cmd/shell.py')
-rw-r--r-- | osprofiler/cmd/shell.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/osprofiler/cmd/shell.py b/osprofiler/cmd/shell.py index 5fe0163..6288659 100644 --- a/osprofiler/cmd/shell.py +++ b/osprofiler/cmd/shell.py @@ -73,9 +73,9 @@ class OSProfilerShell(object): command_parser.set_defaults(func=callback) def _no_project_and_domain_set(self, args): - if not (args.os_project_id or (args.os_project_name and - (args.os_user_domain_name or args.os_user_domain_id)) or - (args.os_tenant_id or args.os_tenant_name)): + if not (args.os_project_id or (args.os_project_name + and (args.os_user_domain_name or args.os_user_domain_id)) + or (args.os_tenant_id or args.os_tenant_name)): return True else: return False |