(self)
return False
Check if registry is of type v2
Check if registry is of type v2
Check if registry is of type v2
def is_v2(self):
        """Check if registry is of type v2"""
        (hdr, dummy) = self._get_url(self.registry_url + "/v2/")
        try:
            if ("200" in hdr.data["X-ND-HTTPSTATUS"] or
                    "401" in hdr.data["X-ND-HTTPSTATUS"]):
                return True
        except (KeyError, AttributeError, TypeError):
            pass
        return False
def is_v2 ( self ) : ( hdr , dummy ) = self . _get_url ( self . registry_url + "/v2/" ) try : if ( "200" in hdr . data [ "X-ND-HTTPSTATUS" ] or "401" in hdr . data [ "X-ND-HTTPSTATUS" ] ) : return True except ( KeyError , AttributeError , TypeError ) : pass return False