diff --git a/oci-info/action/oci.py b/oci-info/action/oci.py index b22f5149..c9f03b92 100644 --- a/oci-info/action/oci.py +++ b/oci-info/action/oci.py @@ -77,7 +77,7 @@ def __init__( headers={"accept": ",".join([h.value for h in OciMediaTypes])}, ) - self.user_auth = (user, password) if user else None + self.user_auth = (user, password) if user and password else None self.reg_domain = reg_domain self.reg_auth_domain = reg_auth_domain self.reg_auth_service = reg_auth_service