Ejemplo n.º 1
0
def is_builtin(ident: str) -> bool:
    """Verify if a tag group is a built-in"""
    tag_config = BuiltinTagConfig()
    return tag_config.tag_group_exists(ident)
Ejemplo n.º 2
0
def is_builtin(ident: str) -> bool:
    """Verify if a tag group is a built-in"""
    if user:
        user.need_permission("wato.hosttags")
    tag_config = BuiltinTagConfig()
    return tag_config.tag_group_exists(ident)