'Helper function to wait for specified volume status'

def _help_wait_for_status(self, args, retry_count):

    remaining = retry_count
    info = self._get_volume_info(args['name'])
    status = args['status_string']
    if ((status in info['string']) or (status in info['details'])):
        remaining = 0
    else:
        remaining -= 1
    return (remaining, info)
