Module Expr Str ImportFrom alias alias alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Import alias identifier ImportFrom alias Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body Pass decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args defaults body Expr Str Global identifier AugAssignAdd NameStore NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Global identifier Assign NameStore SubscriptLoad NameLoad Slice Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad BinOpAdd NameLoad Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore IfExp AttributeLoad NameLoad attr Str Str If CompareGtE Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse Assign NameStore Str Expr Call NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Return BinOpAdd BinOpAdd NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad keyword Str keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr IfExp NameLoad NameLoad ListLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad keyword Str keyword NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return BinOpAdd AttributeLoad NameLoad attr Str orelse Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr IfExp NameLoad NameLoad ListLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Return BinOpAdd BinOpAdd NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Str body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults Str body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr IfExp NameLoad NameLoad ListLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Return BinOpAdd BinOpAdd NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Str body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults Str body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr IfExp NameLoad NameLoad ListLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Return BinOpAdd BinOpAdd NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults Str body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareIn NameLoad TupleLoad Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad orelse Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad If Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Global identifier Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd Call NameLoad NameLoad CompareNotEq NameLoad Str body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body For NameStore NameLoad body If Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Global identifier If Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse For NameStore NameLoad body If Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Global identifier Assign NameStore Call NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore NameLoad body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpAnd Call NameLoad NameLoad NameLoad CompareEq Call NameLoad NameLoad Num Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpAnd Call NameLoad NameLoad NameLoad CompareEq Call NameLoad NameLoad Num CompareEq Call NameLoad Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpAnd Call NameLoad NameLoad NameLoad CompareEq Call NameLoad NameLoad Num Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Global identifier Assign NameStore NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad keyword Str For NameStore NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad keyword Str For NameStore NameLoad body If Call NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad orelse If Call NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore NameLoad body If Call NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad orelse If Call NameLoad NameLoad body Expr Call NameLoad NameLoad orelse If Call NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad Global identifier identifier Assign NameStore Str If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad keyword Str Expr Call NameLoad NameLoad orelse If Call NameLoad NameLoad body Assign NameStore Call NameLoad keyword NameLoad orelse Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Return Call NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore NameLoad If NameLoad body Assign NameStore Call NameLoad keyword NameLoad Return Call NameLoad NameLoad keyword NameLoad keyword Dict Str Str NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Global identifier Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Global identifier Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults TupleLoad body Expr Str Assign NameStore ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Num For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareEq NameLoad Str body Assign NameStore BinOpAdd NameLoad Num If CompareEq NameLoad Num body Return SubscriptLoad NameLoad Slice Num NameLoad Return SubscriptLoad NameLoad Slice Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad vararg kwarg body Expr Str If NameLoad body Expr Call NameLoad NameLoad If NameLoad body Expr Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad Return Call NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str If NameLoad body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Raise Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Dict Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore ListLoad Str If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Call NameLoad keyword Num keyword Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad NameLoad Str TupleLoad Str handlers ExceptHandler type NameLoad name NameStore body Return Call NameLoad keyword Num keyword Call NameLoad NameLoad If CompareNotEq SubscriptLoad NameLoad Index Str Num body Return Call NameLoad SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign NameStore Num Assign NameStore Num Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Index NameLoad Return Call NameLoad Num keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad NameLoad Str TupleLoad Str handlers ExceptHandler type NameLoad name NameStore body Return Call NameLoad keyword Num keyword Call NameLoad NameLoad If CompareNotEq SubscriptLoad NameLoad Index Str Num body Return Call NameLoad SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Return Call NameLoad SubscriptLoad NameLoad Index Str keyword NameLoad Return Call NameLoad Num keyword Str decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad NameLoad Str TupleLoad Str handlers ExceptHandler type NameLoad name NameStore body Return Call NameLoad keyword Num keyword Call NameLoad NameLoad Return Call NameLoad SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults Str Str body Return Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Dict Str Str Str Str Return Dict Str Str Str Str NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str keyword Str If BoolOpOr CompareIs NameLoad NameLoad CompareEq Call NameLoad NameLoad Num body Return Call NameLoad NameLoad keyword NameLoad keyword Str If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Str Return Call NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str Str Assign NameStore SubscriptLoad NameLoad Index Str If CompareEq NameLoad NameLoad body Assign NameStore Dict Str Str NameLoad ListLoad Return Call NameLoad NameLoad keyword NameLoad keyword NameLoad orelse Return Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore ListLoad Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore BinOpAdd ListLoad NameLoad NameLoad If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Return Call NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad orelse Assign NameStore BinOpAdd ListLoad Str NameLoad If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Return Call NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad If CompareGt SubscriptLoad NameLoad Index Str Num body Assign NameStore NameLoad orelse Assign NameStore NameLoad Return Call NameLoad NameLoad keyword NameLoad keyword Dict Str Str Call AttributeLoad Str attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore ListLoad NameLoad Str Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad orelse Assign NameStore ListLoad Str Str Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad Assign NameStore IfExp CompareEq SubscriptLoad NameLoad Index Str Num NameLoad NameLoad Return Call NameLoad NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad Return Call NameLoad keyword Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore NameLoad If BoolOpAnd Call NameLoad NameLoad NameLoad CompareEq Call NameLoad Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad TryExcept body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad Num NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad TryExcept body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Expr Call NameLoad keyword NameLoad keyword Num Expr Call NameLoad keyword NameLoad keyword Num Return Call NameLoad NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Call NameLoad NameLoad Return Call NameLoad NameLoad keyword NameLoad decorator_list
N/A N/A 
Module for getting information about syslog-ng

:maintainer:    Tibor Benke <btibi@sch.bme.hu>
:maturity:      new
:depends:       cmd
:platform:      all

This module is capable of managing syslog-ng instances which were installed
via a package manager or from source. Users can use a directory as a parameter
in the case of most functions, which contains the syslog-ng and syslog-ng-ctl
binaries.

Syslog-ng can be installed via a package manager or from source. In the
latter case, the syslog-ng and syslog-ng-ctl binaries are not available
from the PATH, so users should set location of the sbin directory with
:mod:`syslog_ng.set_binary_path <salt.modules.syslog_ng.set_binary_path>`.

Similarly, users can specify the location of the configuration file with
:mod:`syslog_ng.set_config_file <salt.modules.syslog_ng.set_config_file>`, then
the module will use it. If it is not set, syslog-ng uses the default
configuration file.


 __future__ absolute_import generators with_statement N/A time N/A logging N/A salt N/A os N/A os.path N/A salt.utils salt.exceptions CommandExecutionError N/A salt.ext.six six salt.ext.six.moves range N/A __SYSLOG_NG_BINARY_PATH None N/A __SYSLOG_NG_CONFIG_FILE /etc/syslog-ng.conf N/A __SALT_GENERATED_CONFIG_HEADER #Generated by Salt on {0} SyslogNgError N/A Exception N/A N/A N/A N/A log N/A N/A logging getLogger __name__ N/A N/A N/A log setLevel N/A logging DEBUG N/A __func_alias__ N/A reload_ reload N/A _INDENT N/A _INDENT_STEP N/A _current_statement None N/A _current_option None N/A _current_parameter None N/A _current_parameter_value None _increase_indent N/A N/A N/A N/A N/A 
    Increases the indentation level.
     N/A _INDENT N/A _INDENT _INDENT_STEP N/A _decrease_indent N/A N/A N/A N/A N/A 
    Decreases the indentation level.
     N/A _INDENT N/A _INDENT N/A _INDENT N/A 4 N/A _indent N/A N/A value N/A N/A N/A 
    Returns the indented parameter.
     N/A N/A N/A {0}{1} format _INDENT value N/A _indentln N/A N/A string N/A N/A N/A 
    Return the indented parameter with newline.
     N/A N/A _indent N/A string N/A Buildable N/A object N/A N/A 
    Base class of most classes, which have a build method.

    It contains a common build function.

    Does not need examples.
     __init__ N/A N/A self iterable join_body_on append_extra_newline N/A True N/A N/A N/A self iterable iterable N/A N/A self join_body_on join_body_on N/A N/A self append_extra_newline append_extra_newline N/A build_header N/A N/A self N/A N/A N/A 
        Builds the header of a syslog-ng configuration object.
         N/A N/A build_tail N/A N/A self N/A N/A N/A 
        Builds the tail of a syslog-ng configuration object.
         N/A N/A build_body N/A N/A self N/A N/A N/A 
        Builds the body of a syslog-ng configuration object.
         N/A N/A _increase_indent N/A body_array N/A N/A N/A x build N/A x N/A self iterable N/A nl N/A N/A self append_extra_newline N/A N/A N/A len N/A self iterable 1 N/A N/A body N/A N/A N/A N/A self join_body_on join body_array nl N/A N/A body N/A N/A _decrease_indent N/A body N/A build N/A N/A self N/A N/A N/A 
        Builds the textual representation of the whole configuration object
        with it's children.
         N/A header N/A N/A self build_header N/A body N/A N/A self build_body N/A tail N/A N/A self build_tail N/A N/A N/A header body tail N/A N/A Statement N/A Buildable N/A N/A 
    It represents a syslog-ng configuration statement, e.g. source, destination,
    filter.

    Does not need examples.
     __init__ N/A N/A self type id options has_name N/A None True N/A N/A N/A N/A N/A super Statement self __init__ options join_body_on append_extra_newline False N/A N/A self type type N/A N/A self id id N/A N/A self options N/A options options N/A N/A N/A self iterable N/A self options N/A N/A self has_name has_name N/A build_header N/A N/A self N/A N/A N/A N/A self has_name N/A N/A N/A _indentln N/A N/A {0} {1} {{ format N/A self type N/A self id N/A N/A N/A _indentln N/A N/A {0} {{ format N/A self type N/A build_tail N/A N/A self N/A N/A N/A N/A _indentln }; N/A add_child N/A N/A self option N/A N/A N/A N/A N/A N/A self options append option N/A N/A NamedStatement N/A Statement N/A N/A 
    It represents a configuration statement, which has a name, e.g. a source.

    Does not need examples.
     __init__ N/A N/A self type id options N/A None N/A N/A N/A N/A N/A super NamedStatement self __init__ type id options has_name True N/A N/A UnnamedStatement N/A Statement N/A N/A 
    It represents a configuration statement, which doesn't have a name, e.g. a
    log path.

    Does not need examples.
     __init__ N/A N/A self type options N/A None N/A N/A N/A N/A N/A super UnnamedStatement self __init__ type id options options has_name False N/A N/A GivenStatement N/A Buildable N/A N/A 
    This statement returns a string without modification. It can be used to
     use existing configuration snippets.

    Does not need examples.
     __init__ N/A N/A self value add_newline N/A True N/A N/A N/A N/A N/A super GivenStatement self __init__ iterable None N/A N/A self value value N/A N/A self add_newline add_newline N/A build N/A N/A self N/A N/A N/A N/A self add_newline N/A N/A N/A N/A self value N/A N/A N/A self value N/A N/A Option N/A Buildable N/A N/A 
    A Statement class contains Option instances.

    An instance of Option can represent a file(), tcp(), udp(), etc.  option.

    Does not need examples.
     __init__ N/A N/A self type params N/A None N/A N/A N/A N/A N/A super Option self __init__ params ,
 N/A N/A self type type N/A N/A self params N/A params params N/A N/A N/A self iterable N/A self params N/A build N/A N/A self N/A N/A N/A header N/A _indentln N/A N/A {0}( format N/A self type N/A tail N/A _indentln ); N/A body N/A N/A self build_body N/A N/A N/A header body tail N/A add_parameter N/A N/A self param N/A N/A N/A N/A N/A N/A self params append param N/A N/A Parameter N/A Buildable N/A N/A 
    An Option has one or more Parameter instances.

    Does not need examples.
     __init__ N/A N/A self iterable join_body_on N/A None N/A N/A N/A N/A N/A super Parameter self __init__ iterable join_body_on N/A N/A SimpleParameter N/A Parameter N/A N/A 
    A Parameter is a SimpleParameter, if it's just a simple type, like a
    string.

    For example:

    .. code-block:: text

        destination d_file {
            file(
                '/var/log/messages'
            );
        };

    ``/var/log/messages`` is a SimpleParameter.

    Does not need examples.
     __init__ N/A N/A self value N/A N/A N/A N/A N/A N/A super SimpleParameter self __init__ N/A N/A self value value N/A build N/A N/A self N/A N/A N/A N/A _indent N/A self value N/A N/A TypedParameter N/A Parameter N/A N/A 
    A Parameter, which has a type:

    .. code-block:: text

        destination d_tcp {
            tcp(
                ip(127.0.0.1)
            );
        };

    ``ip(127.0.0.1)`` is a TypedParameter.

    Does not need examples.
     __init__ N/A N/A self type values N/A None N/A N/A N/A N/A N/A super TypedParameter self __init__ values ,
 N/A N/A self type type N/A N/A self values N/A values values N/A N/A N/A self iterable N/A self values N/A build N/A N/A self N/A N/A N/A header N/A _indentln N/A N/A {0}( format N/A self type N/A tail N/A _indent ) N/A body N/A N/A self build_body N/A N/A N/A header body tail N/A add_value N/A N/A self value N/A N/A N/A N/A N/A N/A self values append value N/A N/A ParameterValue N/A Buildable N/A N/A 
    A TypedParameter can have one or more values.

    Does not need examples.
     __init__ N/A N/A self iterable join_body_on N/A None N/A N/A N/A N/A N/A super ParameterValue self __init__ iterable join_body_on N/A N/A SimpleParameterValue N/A ParameterValue N/A N/A 
    A ParameterValuem which holds a simple type, like a string or a number.

    For example in ip(127.0.0.1) 127.0.0.1 is a SimpleParameterValue.

    Does not need examples.
     __init__ N/A N/A self value N/A N/A N/A N/A N/A N/A super SimpleParameterValue self __init__ N/A N/A self value value N/A build N/A N/A self N/A N/A N/A N/A _indent N/A self value N/A N/A TypedParameterValue N/A ParameterValue N/A N/A 
    We have to go deeper...

    A TypedParameter can have a 'parameter', which also have a type. For example
    key_file and cert_file:

    .. code-block:: text

        source demo_tls_source {
            tcp(
                ip(0.0.0.0)
                port(1999)
                tls(
                    key_file('/opt/syslog-ng/etc/syslog-ng/key.d/syslog-ng.key')
                    cert_file('/opt/syslog-ng/etc/syslog-ng/cert.d/syslog-ng.cert')
                )
            );
        };

    Does not need examples.
     __init__ N/A N/A self type arguments N/A None N/A N/A N/A N/A N/A super TypedParameterValue self __init__ arguments N/A N/A self type type N/A N/A self arguments N/A arguments arguments N/A N/A N/A self iterable N/A self arguments N/A build N/A N/A self N/A N/A N/A header N/A _indentln N/A N/A {0}( format N/A self type N/A tail N/A _indent ) N/A body N/A N/A self build_body N/A N/A N/A header body tail N/A add_argument N/A N/A self arg N/A N/A N/A N/A N/A N/A self arguments append arg N/A N/A Argument N/A object N/A N/A 
    A TypedParameterValue has one or more Arguments. For example this can be
    the value of key_file.

    Does not need examples.
     __init__ N/A N/A self value N/A N/A N/A N/A self value value N/A build N/A N/A self N/A N/A N/A N/A _indent N/A self value N/A N/A _is_statement_unnamed N/A N/A statement N/A N/A N/A 
    Returns True, if the given statement is an unnamed statement, like log or
    junction.

     N/A N/A statement N/A log channel junction options N/A _is_simple_type N/A N/A value N/A N/A N/A 
    Returns True, if the given parameter value is an instance of either
    int, str, float or bool.
     N/A N/A N/A isinstance value str N/A isinstance value int N/A isinstance value float N/A isinstance value bool N/A _get_type_id_options N/A N/A name configuration N/A N/A N/A 
    Returns the type, id and option of a configuration object.
     N/A N/A . name N/A N/A N/A type_ sep id_ N/A N/A name partition . N/A options configuration N/A N/A type_ N/A next N/A N/A six iterkeys configuration N/A id_ name N/A options N/A configuration N/A type_ N/A N/A type_ id_ options N/A _expand_one_key_dictionary N/A N/A _dict N/A N/A N/A 
    Returns the only one key and it's value from a dictionary.
     N/A key N/A next N/A N/A six iterkeys _dict N/A value N/A _dict N/A key N/A N/A key value N/A _parse_typed_parameter_typed_value N/A N/A values N/A N/A N/A 
    Creates Arguments in a TypedParametervalue.
     N/A N/A type_ value N/A _expand_one_key_dictionary values N/A N/A _current_parameter_value type type_ N/A N/A _is_simple_type value N/A N/A arg N/A Argument value N/A N/A N/A _current_parameter_value add_argument arg N/A N/A N/A isinstance value list N/A N/A idx value N/A N/A arg N/A Argument idx N/A N/A N/A _current_parameter_value add_argument arg N/A _parse_typed_parameter N/A N/A param N/A N/A N/A 
    Parses a TypedParameter and fills it with values.
     N/A _current_parameter_value N/A N/A type_ value N/A _expand_one_key_dictionary param N/A N/A _current_parameter type type_ N/A N/A N/A _is_simple_type value N/A value N/A N/A _current_parameter_value N/A SimpleParameterValue value N/A N/A N/A _current_parameter add_value _current_parameter_value N/A N/A N/A isinstance value list N/A N/A i value N/A N/A N/A _is_simple_type i N/A N/A _current_parameter_value N/A SimpleParameterValue i N/A N/A N/A _current_parameter add_value _current_parameter_value N/A N/A N/A isinstance i dict N/A N/A _current_parameter_value N/A TypedParameterValue N/A N/A _parse_typed_parameter_typed_value i N/A N/A N/A _current_parameter add_value _current_parameter_value N/A _create_and_add_parameters N/A N/A params N/A N/A N/A 
    Parses the configuration and creates Parameter instances.
     N/A _current_parameter N/A N/A _is_simple_type params N/A N/A _current_parameter N/A SimpleParameter params N/A N/A N/A _current_option add_parameter _current_parameter N/A N/A i params N/A N/A N/A _is_simple_type i N/A N/A _current_parameter N/A SimpleParameter i N/A N/A _current_parameter N/A TypedParameter N/A N/A _parse_typed_parameter i N/A N/A N/A _current_option add_parameter _current_parameter N/A _create_and_add_option N/A N/A option N/A N/A N/A 
    Parses the configuration and creates an Option instance.
     N/A _current_option N/A _current_option N/A Option N/A N/A type_ params N/A _expand_one_key_dictionary option N/A N/A _current_option type type_ N/A N/A _create_and_add_parameters params N/A N/A N/A _current_statement add_child _current_option N/A _parse_statement N/A N/A options N/A N/A N/A 
    Parses the configuration and creates options the statement.
     N/A option options N/A N/A N/A _create_and_add_option option N/A _is_reference N/A N/A arg N/A N/A N/A 
    Return True, if arg is a reference to a previously defined statement.
     N/A N/A N/A isinstance arg dict N/A N/A len arg 1 N/A isinstance N/A next N/A N/A six itervalues arg N/A six string_types N/A _is_junction N/A N/A arg N/A N/A N/A 
    Return True, if arg is a junction statement.
     N/A N/A N/A isinstance arg dict N/A N/A len arg 1 N/A N/A next N/A N/A six iterkeys arg junction N/A _add_reference N/A N/A reference statement N/A N/A N/A 
    Adds a reference to statement.
     N/A N/A type_ value N/A _expand_one_key_dictionary reference N/A opt N/A Option type_ N/A param N/A SimpleParameter value N/A N/A N/A opt add_parameter param N/A N/A N/A statement add_child opt N/A _is_inline_definition N/A N/A arg N/A N/A N/A 
    Returns True, if arg is an inline definition of a statement.
     N/A N/A N/A isinstance arg dict N/A N/A len arg 1 N/A isinstance N/A next N/A N/A six itervalues arg list N/A _add_inline_definition N/A N/A item statement N/A N/A N/A 
    Adds an inline definition to statement.
     N/A _current_statement N/A backup _current_statement N/A N/A type_ options N/A _expand_one_key_dictionary item N/A _current_statement N/A UnnamedStatement type type_ N/A N/A _parse_statement options N/A N/A N/A statement add_child _current_statement N/A _current_statement backup N/A _add_junction N/A N/A item N/A N/A N/A 
    Adds a junction to the _current_statement.
     N/A N/A type_ channels N/A _expand_one_key_dictionary item N/A junction N/A UnnamedStatement type junction N/A item channels N/A N/A N/A type_ value N/A _expand_one_key_dictionary item N/A channel N/A UnnamedStatement type channel N/A val value N/A N/A N/A _is_reference val N/A N/A N/A _add_reference val channel N/A N/A N/A _is_inline_definition val N/A N/A N/A _add_inline_definition val channel N/A N/A N/A junction add_child channel N/A N/A N/A _current_statement add_child junction N/A _parse_log_statement N/A N/A options N/A N/A N/A 
    Parses a log path.
     N/A i options N/A N/A N/A _is_reference i N/A N/A N/A _add_reference i _current_statement N/A N/A N/A _is_junction i N/A N/A N/A _add_junction i N/A N/A N/A _is_inline_definition i N/A N/A N/A _add_inline_definition i _current_statement N/A _build_config_tree N/A N/A name configuration N/A N/A N/A 
    Build the configuration tree.

    The root object is _current_statement.
     N/A N/A type_ id_ options N/A _get_type_id_options name configuration N/A _INDENT _current_statement N/A _INDENT N/A N/A type_ config N/A N/A _current_statement N/A GivenStatement options N/A N/A N/A type_ log N/A N/A _current_statement N/A UnnamedStatement type log N/A N/A _parse_log_statement options N/A N/A N/A _is_statement_unnamed type_ N/A N/A _current_statement N/A UnnamedStatement type type_ N/A N/A _current_statement N/A NamedStatement type type_ id id_ N/A N/A _parse_statement options N/A _render_configuration N/A N/A N/A N/A N/A 
    Renders the configuration tree into syslog-ng's configuration syntax.
     N/A text_repr N/A N/A _current_statement build N/A _INDENT N/A text_repr N/A config N/A N/A name config write N/A True N/A N/A 
    Builds syslog-ng configuration. This function is intended to be used from
    the state module, users should not use it directly!

    name : the id of the Salt document or it is the format of <statement name>.id
    config : the parsed YAML code
    write : if True, it writes  the config into the configuration file,
    otherwise just returns it

    CLI Example:

    .. code-block:: bash

        salt '*' syslog_ng.config name='s_local' config="[{'tcp':[{'ip':'127.0.0.1'},{'port':1233}]}]"

     N/A N/A _build_config_tree name config N/A configs N/A _render_configuration N/A N/A N/A __opts__ get test False N/A N/A comment N/A N/A State syslog_ng will write '{0}' into {1} format configs __SYSLOG_NG_CONFIG_FILE N/A N/A _format_state_result name result None comment comment N/A succ write N/A write N/A N/A succ N/A _write_config config configs N/A N/A _format_state_result name result succ changes N/A new old configs N/A set_binary_path N/A N/A name N/A N/A N/A 
    Sets the path, where the syslog-ng binary can be found. This function is
    intended to be used from states.

    If syslog-ng is installed via a package manager, users don't need to use
    this function.

    CLI Example:

    .. code-block:: bash

        salt '*' syslog_ng.set_binary_path name=/usr/sbin

     N/A __SYSLOG_NG_BINARY_PATH N/A old __SYSLOG_NG_BINARY_PATH N/A __SYSLOG_NG_BINARY_PATH name N/A changes N/A _format_changes old name N/A N/A _format_state_result name result True changes changes N/A set_config_file N/A N/A name N/A N/A N/A 
    Sets the configuration's name. This function is intended to be used from
    states.

    CLI Example:

    .. code-block:: bash

        salt '*' syslog_ng.set_config_file name=/etc/syslog-ng

     N/A __SYSLOG_NG_CONFIG_FILE N/A old __SYSLOG_NG_CONFIG_FILE N/A __SYSLOG_NG_CONFIG_FILE name N/A changes N/A _format_changes old name N/A N/A _format_state_result name result True changes changes N/A get_config_file N/A N/A N/A N/A N/A 
    Returns the configuration directory, which contains syslog-ng.conf.

    CLI Example:

    .. code-block:: bash

        salt '*' syslog_ng.get_config_file

     N/A __SYSLOG_NG_CONFIG_FILE N/A _run_command N/A N/A cmd options N/A N/A N/A N/A 
    Runs the command cmd with options as its CLI parameters and returns the
    result as a dictionary.
     N/A params N/A cmd N/A N/A N/A params extend options N/A N/A N/A __salt__ N/A cmd.run_all params python_shell False N/A _determine_config_version N/A N/A syslog_ng_sbin_dir N/A N/A N/A ret N/A version syslog_ng_sbin_dir N/A full_version N/A ret N/A stdout N/A dot_count 0 N/A N/A idx part N/A enumerate full_version N/A N/A N/A part . N/A N/A dot_count N/A dot_count 1 N/A N/A dot_count 2 N/A N/A N/A full_version N/A 0 idx N/A N/A full_version N/A 3 N/A set_parameters N/A N/A version binary_path config_file N/A None None None args kwargs N/A N/A 
    Sets variables.

    CLI Example:

    .. code-block:: bash

        salt '*' syslog_ng.set_parameters version='3.6'
        salt '*' syslog_ng.set_parameters  binary_path=/home/user/install/syslog-ng/sbin config_file=/home/user/install/syslog-ng/etc/syslog-ng.conf

     N/A binary_path N/A N/A N/A set_binary_path binary_path N/A config_file N/A N/A N/A set_config_file config_file N/A version N/A N/A version N/A _determine_config_version __SYSLOG_NG_BINARY_PATH N/A N/A write_version version N/A N/A _format_return_data 0 N/A _add_to_path_envvar N/A N/A directory N/A N/A N/A 
    Adds directory to the PATH environment variable and returns the original
    one.
     N/A orig_path N/A N/A N/A os environ get PATH N/A directory N/A N/A N/A N/A N/A N/A os path isdir directory N/A N/A N/A N/A log error The given parameter is not a directory N/A N/A N/A os environ N/A PATH N/A N/A {0}{1}{2} format orig_path N/A os pathsep directory N/A orig_path N/A _restore_path_envvar N/A N/A original N/A N/A N/A 
    Sets the PATH environment variable to the parameter.
     N/A original N/A N/A N/A N/A os environ N/A PATH original N/A _run_command_in_extended_path N/A N/A syslog_ng_sbin_dir command params N/A N/A N/A 
    Runs the given command in an environment, where the syslog_ng_sbin_dir is
    added then removed from the PATH.
     N/A orig_path N/A _add_to_path_envvar syslog_ng_sbin_dir N/A N/A N/A N/A N/A salt utils which command N/A N/A error_message N/A N/A Unable to execute the command '{0}'. It is not in the PATH. format command N/A N/A N/A log error error_message N/A N/A _restore_path_envvar orig_path N/A N/A CommandExecutionError error_message N/A ret N/A _run_command command options params N/A N/A _restore_path_envvar orig_path N/A ret N/A _format_return_data N/A N/A retcode stdout stderr N/A None None N/A N/A 
    Creates a dictionary from the parameters, which can be used to return data
    to Salt.
     N/A ret N/A retcode retcode N/A N/A stdout None N/A N/A N/A ret N/A stdout stdout N/A N/A stderr None N/A N/A N/A ret N/A stderr stderr N/A ret N/A config_test N/A N/A syslog_ng_sbin_dir cfgfile N/A None None N/A N/A 
    Runs syntax check against cfgfile. If syslog_ng_sbin_dir is specified, it
    is added to the PATH during the test.

    CLI Example:

    .. code-block:: bash

        salt '*' syslog_ng.config_test
        salt '*' syslog_ng.config_test /home/user/install/syslog-ng/sbin
        salt '*' syslog_ng.config_test /home/user/install/syslog-ng/sbin /etc/syslog-ng/syslog-ng.conf
     N/A params N/A --syntax-only N/A cfgfile N/A N/A N/A N/A params append N/A N/A --cfgfile={0} format cfgfile N/A N/A N/A ret N/A _run_command_in_extended_path syslog_ng_sbin_dir syslog-ng params N/A N/A N/A CommandExecutionError N/A err N/A N/A N/A _format_return_data retcode -1 stderr N/A str err N/A retcode N/A N/A ret get retcode -1 N/A stderr N/A N/A ret get stderr None N/A stdout N/A N/A ret get stdout None N/A N/A _format_return_data retcode stdout stderr N/A version N/A N/A syslog_ng_sbin_dir N/A None N/A N/A 
    Returns the version of the installed syslog-ng. If syslog_ng_sbin_dir is
    specified, it is added to the PATH during the execution of the command
    syslog-ng.

    CLI Example:

    .. code-block:: bash

        salt '*' syslog_ng.version
        salt '*' syslog_ng.version /home/user/install/syslog-ng/sbin
     N/A N/A N/A ret N/A _run_command_in_extended_path syslog_ng_sbin_dir syslog-ng N/A -V N/A N/A N/A CommandExecutionError N/A err N/A N/A N/A _format_return_data retcode -1 stderr N/A str err N/A N/A N/A ret N/A retcode 0 N/A N/A N/A _format_return_data N/A ret N/A retcode stderr N/A ret N/A stderr stdout N/A ret N/A stdout N/A lines N/A N/A N/A ret N/A stdout split N/A version_line_index 0 N/A version_column_index 1 N/A line N/A N/A N/A N/A lines N/A version_line_index split N/A version_column_index N/A N/A _format_return_data 0 stdout line N/A modules N/A N/A syslog_ng_sbin_dir N/A None N/A N/A 
    Returns the available modules. If syslog_ng_sbin_dir is specified, it
    is added to the PATH during the execution of the command syslog-ng.

    CLI Example:

    .. code-block:: bash

        salt '*' syslog_ng.modules
        salt '*' syslog_ng.modules /home/user/install/syslog-ng/sbin
     N/A N/A N/A ret N/A _run_command_in_extended_path syslog_ng_sbin_dir syslog-ng N/A -V N/A N/A N/A CommandExecutionError N/A err N/A N/A N/A _format_return_data retcode -1 stderr N/A str err N/A N/A N/A ret N/A retcode 0 N/A N/A N/A _format_return_data N/A ret N/A retcode N/A N/A ret get stdout N/A N/A ret get stderr N/A lines N/A N/A N/A ret N/A stdout split N/A line lines N/A N/A N/A N/A line startswith Available-Modules N/A N/A N/A label installed_modules N/A N/A line split N/A N/A _format_return_data N/A ret N/A retcode stdout installed_modules N/A N/A _format_return_data -1 stderr Unable to find the modules. N/A stats N/A N/A syslog_ng_sbin_dir N/A None N/A N/A 
    Returns statistics from the running syslog-ng instance. If
    syslog_ng_sbin_dir is specified, it is added to the PATH during the
    execution of the command syslog-ng-ctl.

    CLI Example:

    .. code-block:: bash

        salt '*' syslog_ng.stats
        salt '*' syslog_ng.stats /home/user/install/syslog-ng/sbin
     N/A N/A N/A ret N/A _run_command_in_extended_path syslog_ng_sbin_dir syslog-ng-ctl N/A stats N/A N/A N/A CommandExecutionError N/A err N/A N/A N/A _format_return_data retcode -1 stderr N/A str err N/A N/A _format_return_data N/A ret N/A retcode N/A N/A ret get stdout N/A N/A ret get stderr N/A _format_changes N/A N/A old new N/A N/A N/A N/A old new old new N/A _format_state_result N/A N/A name result changes comment N/A None N/A N/A 
    Creates the state result dictionary.
     N/A N/A changes None N/A N/A changes N/A old new N/A N/A name result changes comment name result changes comment N/A _add_cli_param N/A N/A params key value N/A N/A N/A 
    Adds key and value as a command line parameter to params.
     N/A N/A value None N/A N/A N/A N/A params append N/A N/A --{0}={1} format key value N/A _add_boolean_cli_param N/A N/A params key value N/A N/A N/A 
    Adds key as a command line parameter to params.
     N/A N/A value True N/A N/A N/A N/A params append N/A N/A --{0} format key N/A stop N/A N/A name N/A None N/A N/A 
    Kills syslog-ng. This function is intended to be used from the state module.

    Users shouldn't use this function, if the service module is available on
    their system.  If :mod:`syslog_ng.set_config_file
    <salt.modules.syslog_ng.set_binary_path>` is called before, this function
    will use the set binary path.

    CLI Example:

    .. code-block:: bash

        salt '*' syslog_ng.stop

     N/A pids N/A N/A __salt__ N/A ps.pgrep pattern syslog-ng N/A N/A N/A pids None N/A N/A len pids 0 N/A N/A N/A _format_state_result name result False comment Syslog-ng is not running N/A N/A N/A __opts__ get test False N/A N/A comment Syslog_ng state module will kill {0} pids N/A N/A _format_state_result name result None comment comment N/A res N/A N/A __salt__ N/A ps.pkill syslog-ng N/A killed_pids N/A res N/A killed N/A N/A killed_pids pids N/A N/A changes N/A old new killed_pids N/A N/A N/A _format_state_result name result True changes changes N/A N/A N/A _format_state_result name result False N/A start N/A N/A name user group chroot caps no_caps pidfile enable_core fd_limit verbose debug trace yydebug persist_file control worker_threads N/A None None None None None False None False None False False False False None None None N/A N/A 
    Ensures, that syslog-ng is started via the given parameters. This function
    is intended to be used from the state module.

    Users shouldn't use this function, if the service module is available on
    their system. If :mod:`syslog_ng.set_config_file
    <salt.modules.syslog_ng.set_binary_path>`, is called before, this function
    will use the set binary path.

    CLI Example:

    .. code-block:: bash

        salt '*' syslog_ng.start

     N/A params N/A N/A N/A _add_cli_param params user user N/A N/A _add_cli_param params group group N/A N/A _add_cli_param params chroot chroot N/A N/A _add_cli_param params caps caps N/A N/A _add_boolean_cli_param params no-capse no_caps N/A N/A _add_cli_param params pidfile pidfile N/A N/A _add_boolean_cli_param params enable-core enable_core N/A N/A _add_cli_param params fd-limit fd_limit N/A N/A _add_boolean_cli_param params verbose verbose N/A N/A _add_boolean_cli_param params debug debug N/A N/A _add_boolean_cli_param params trace trace N/A N/A _add_boolean_cli_param params yydebug yydebug N/A N/A _add_cli_param params cfgfile __SYSLOG_NG_CONFIG_FILE N/A N/A _add_boolean_cli_param params persist-file persist_file N/A N/A _add_cli_param params control control N/A N/A _add_cli_param params worker-threads worker_threads N/A __SYSLOG_NG_BINARY_PATH N/A N/A syslog_ng_binary N/A N/A N/A os path join __SYSLOG_NG_BINARY_PATH syslog-ng N/A command N/A N/A syslog_ng_binary params N/A N/A N/A __opts__ get test False N/A N/A comment N/A N/A Syslog_ng state module will start {0} format command N/A N/A _format_state_result name result None comment comment N/A result N/A N/A __salt__ N/A cmd.run_all command python_shell False N/A N/A command N/A N/A syslog-ng params N/A N/A N/A __opts__ get test False N/A N/A comment N/A N/A Syslog_ng state module will start {0} format command N/A N/A _format_state_result name result None comment comment N/A result N/A N/A __salt__ N/A cmd.run_all command python_shell False N/A N/A N/A result N/A pid 0 N/A N/A succ True N/A N/A succ False N/A N/A _format_state_result name result succ changes N/A new old N/A N/A join command N/A reload_ N/A N/A name N/A N/A N/A 
    Reloads syslog-ng. This function is intended to be used from states.

    If :mod:`syslog_ng.set_config_file
    <salt.modules.syslog_ng.set_binary_path>`, is called before, this function
    will use the set binary path.

    CLI Example:

    .. code-block:: bash

        salt '*' syslog_ng.reload

     N/A __SYSLOG_NG_BINARY_PATH N/A N/A syslog_ng_ctl_binary N/A N/A N/A os path join __SYSLOG_NG_BINARY_PATH syslog-ng-ctl N/A command N/A syslog_ng_ctl_binary reload N/A result N/A N/A __salt__ N/A cmd.run_all command python_shell False N/A N/A command N/A syslog-ng-ctl reload N/A result N/A N/A __salt__ N/A cmd.run_all command python_shell False N/A succ N/A N/A N/A result N/A retcode 0 True False N/A N/A _format_state_result name result succ comment N/A result N/A stdout N/A _format_generated_config_header N/A N/A N/A N/A N/A 
    Formats a header, which is prepended to all appended config.
     N/A now N/A N/A time strftime %Y-%m-%d %H:%M:%S N/A N/A N/A __SALT_GENERATED_CONFIG_HEADER format now N/A write_config N/A N/A config newlines N/A 2 N/A N/A 
    Writes the given parameter config into the config file. This function is
    intended to be used from states.

    If :mod:`syslog_ng.set_config_file
    <salt.modules.syslog_ng.set_config_file>`, is called before, this function
    will use the set config file.

    CLI Example:

    .. code-block:: bash

        salt '*' syslog_ng.write_config config='# comment'

     N/A succ N/A _write_config config newlines N/A changes N/A _format_changes new config N/A N/A _format_state_result name result succ changes changes N/A _write_config N/A N/A config newlines N/A 2 N/A N/A 
    Writes the given parameter config into the config file.
     N/A text config N/A N/A N/A isinstance config dict N/A N/A len N/A list N/A list N/A N/A config keys 1 N/A N/A key N/A next N/A N/A six iterkeys config N/A text N/A config N/A key N/A N/A N/A N/A N/A N/A salt utils fopen __SYSLOG_NG_CONFIG_FILE a fha N/A N/A N/A N/A fha write text N/A _ N/A range 0 newlines N/A N/A N/A N/A fha write N/A os linesep N/A True N/A N/A N/A Exception N/A err N/A N/A N/A N/A log error N/A str err N/A False N/A write_version N/A N/A name N/A N/A N/A 
    Removes the previous configuration file, then creates a new one and writes
    the name line. This function is intended to be used from states.

    If :mod:`syslog_ng.set_config_file
    <salt.modules.syslog_ng.set_config_file>`, is called before, this function
    will use the set config file.

    CLI Example:

    .. code-block:: bash

        salt '*' syslog_ng.write_version name="3.6"

     N/A line N/A N/A @version: {0} format name N/A N/A N/A N/A N/A N/A os path exists __SYSLOG_NG_CONFIG_FILE N/A N/A N/A N/A log debug N/A N/A Removing previous configuration file: {0} format __SYSLOG_NG_CONFIG_FILE N/A N/A N/A os remove __SYSLOG_NG_CONFIG_FILE N/A N/A N/A log debug Configuration file successfully removed N/A header N/A _format_generated_config_header N/A N/A _write_config config header newlines 1 N/A N/A _write_config config line newlines 2 N/A N/A _format_state_result name result True N/A N/A N/A OSError N/A err N/A N/A N/A N/A log error N/A N/A Failed to remove previous configuration file '{0}': {1} format __SYSLOG_NG_CONFIG_FILE N/A str err N/A N/A _format_state_result name result False N/A