Example #1
0
File: acl.py Project: 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"))
Example #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"))
Example #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"))
Example #4
0
def acl_disable(argv):
    # TODO move to lib once lib supports cluster properties
    prop.set_property(["enable-acl=false"])
Example #5
0
def acl_disable(argv):
    prop.set_property(["enable-acl=false"])
Example #6
0
def acl_enable(argv):
    prop.set_property(["enable-acl=true"])
Example #7
0
def acl_disable(argv):
    # TODO move to lib once lib supports cluster properties
    prop.set_property(["enable-acl=false"])