def _inner(hostname, rack, rank, appliance, make, model):
    cmd = f'stack add host {hostname} rack={rack} rank={rank} appliance={appliance}'
    result = subprocess.run(cmd.split())
    if (result.returncode != 0):
        pytest.fail('unable to add a dummy host')
    cmd = f'stack set host attr {hostname} attr=component.make value={make}'
    result = subprocess.run(cmd.split())
    if (result.returncode != 0):
        pytest.fail('unable to set make')
    cmd = f'stack set host attr {hostname} attr=component.model value={model}'
    result = subprocess.run(cmd.split())
    if (result.returncode != 0):
        pytest.fail('unable to set model')
def _inner(hostname, rack, rank, appliance, make, model):
    cmd = f'stack add host {hostname} rack={rack} rank={rank} appliance={appliance}'
    result = subprocess.run(cmd.split())
    if (result.returncode != 0):
        pytest.fail('unable to add a dummy host')
    cmd = f'stack set host attr {hostname} attr=component.make value={make}'
    result = subprocess.run(cmd.split())
    if (result.returncode != 0):
        pytest.fail('unable to set make')
    cmd = f'stack set host attr {hostname} attr=component.model value={model}'
    result = subprocess.run(cmd.split())
    if (result.returncode != 0):
        pytest.fail('unable to set model')