示例#1
0
def schema():
    return {
        **action(),
        Optional("parameters"): {
            Optional("kernel-start-message"): str,
            Optional("shutdown-message"): str,
        },
        Optional("soft_reboot"): str,
    }
示例#2
0
文件: __init__.py 项目: b59118/lava
def schema(live=False):
    base = {
        **action(live),
        Optional("parameters"): {
            Optional("kernel-start-message"): str,
            Optional("shutdown-message"): str,
        },
        Optional("soft_reboot"): str,
    }
    return base
示例#3
0
文件: __init__.py 项目: b59118/lava
def schema(live=False):
    base = {**action(live), Optional("os"): str, Optional("authorize"): "ssh"}

    if not live:
        return base
    return {
        **base,
        Optional("deployment_data"): {
            str: Any(str, bool, float, int)
        }
    }
示例#4
0
文件: __init__.py 项目: slawr/lava
def schema():
    return action()
示例#5
0
def schema():
    return {**action(), Optional("os"): str, Optional("authorize"): "ssh"}
示例#6
0
def schema(live=False):
    if not live:
        return action(live)

    return {**action(live), Required("stage"): Range(min=0)}
示例#7
0
def schema():
    return {**action(), Required("name"): str}
示例#8
0
def schema(live=False):
    return {**action(live), Required("name"): str}