usergroup.py 文件源码

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

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

            Args:
                user_group_name (str)  --  name of the user group

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

            Raises:
                SDKException:
                    if type of the user group name argument is not string
        """
        if not isinstance(user_group_name, basestring):
            raise SDKException('UserGroup', '101')

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


问题


面经


文章

微信
公众号

扫码关注公众号