def _is_host_full(client, host):
 luns = client.get_volume_mappings_for_host(host['hostRef'])
 return (len(luns) >= utils.MAX_LUNS_PER_HOST)

def _is_host_full ( client , host ) : luns = client . get_volume_mappings_for_host ( host [ 'hostRef' ] ) return ( len ( luns ) >= utils . MAX_LUNS_PER_HOST )
checks whether maximum volumes attached to a host have been reached .