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
评论列表
文章目录