'Eats a vgc-cluster space-list commandline to a dict.'

def _parse_space_list(self, *cmd):

    json = False
    nameOnly = False
    cmd = list(*cmd)
    while cmd:
        param = cmd.pop(0)
        if (param == '--json'):
            json = True
        elif (param == '--name-only'):
            nameOnly = True
        elif (param == '-n'):
            pass
        else:
            pass
    if self._fail_space_list:
        raise processutils.ProcessExecutionError(exit_code=1)
    elif nameOnly:
        return ('space1\nspace2\nvolume1\n', '')
    elif json:
        return (HGST_SPACE_JSON, '')
    else:
        return ('', '')
