client.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:cvpysdk 作者: CommvaultEngg 项目源码 文件源码
def has_client(self, client_name):
        """Checks if a client exists in the commcell with the input client name.

            Args:
                client_name (str)  --  name of the client

            Returns:
                bool - boolean output whether the client exists in the commcell or not

            Raises:
                SDKException:
                    if type of the client name argument is not string
        """
        if not isinstance(client_name, basestring):
            raise SDKException('Client', '101')

        return self._clients and client_name.lower() in self._clients
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号