Esempio n. 1
0
File: acl.py Progetto: gmelikov/pcs
def acl_disable(lib, argv, modifiers):
    """
    Options:
      * -f - CIB file
    """
    # TODO move to lib once lib supports cluster properties
    modifiers.ensure_only_supported("-f")
    prop.set_property(lib, ["enable-acl=false"], modifiers.get_subset("-f"))
Esempio n. 2
0
def acl_enable(lib, argv, modifiers):
    """
    Options:
      * -f - CIB file
    """
    # TODO move to lib once lib supports cluster properties
    modifiers.ensure_only_supported("-f")
    if argv:
        raise CmdLineInputError()
    prop.set_property(lib, ["enable-acl=true"], modifiers.get_subset("-f"))
Esempio n. 3
0
def acl_disable(lib, argv, modifiers):
    """
    Options:
      * -f - CIB file
    """
    # TODO move to lib once lib supports cluster properties
    modifiers.ensure_only_supported("-f")
    if argv:
        raise CmdLineInputError()
    prop.set_property(lib, ["enable-acl=false"], modifiers.get_subset("-f"))
Esempio n. 4
0
def acl_disable(argv):
    # TODO move to lib once lib supports cluster properties
    prop.set_property(["enable-acl=false"])
Esempio n. 5
0
def acl_disable(argv):
    prop.set_property(["enable-acl=false"])
Esempio n. 6
0
def acl_enable(argv):
    prop.set_property(["enable-acl=true"])
Esempio n. 7
0
def acl_disable(argv):
    # TODO move to lib once lib supports cluster properties
    prop.set_property(["enable-acl=false"])