Module Expr Str Import alias Import alias identifier ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str ClassDef bases NameLoad body Expr Str Pass decorator_list FunctionDef arguments args defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore Lambda arguments args NameParam defaults Call AttributeLoad Str attr Call AttributeLoad Call AttributeLoad Str attr NameLoad attr Str Num Raise Call NameLoad Call AttributeLoad Str attr Call NameLoad NameLoad orelse If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Str orelse Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Dict For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num AugAssignAdd SubscriptStore NameLoad Index NameLoad Num Return ListComp Dict Str Str NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad TryFinally body TryExcept body Assign NameStore Call NameLoad NameLoad BinOpAdd Str NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Raise Call NameLoad Call AttributeLoad Str attr NameLoad orelse Return NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call NameLoad If CompareNotIn NameLoad ListLoad Str Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore BinOpAdd Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Str AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad Raise Call NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore Str AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad Call NameLoad NameLoad Raise Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Continue decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Str body Expr Str Assign NameStore Call NameLoad NameLoad keyword Str Assign NameStore Call NameLoad NameLoad keyword Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore NameLoad If Call NameLoad ListLoad NameLoad keyword NameLoad keyword NameLoad body Assign NameStore NameLoad For NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str ListLoad body For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr NameLoad If Call NameLoad ListLoad NameLoad keyword NameLoad keyword NameLoad body Assign NameStore NameLoad Break If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad Str body Expr Str Assign NameStore ListLoad If UnaryOpNot NameLoad body Assign NameStore ListLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Assign NameStore NameLoad If BoolOpAnd NameLoad CompareNotEq Call AttributeLoad NameLoad attr Str Str NameLoad body Assign NameStore NameLoad If NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad ListComp SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num comprehension NameStore SubscriptLoad NameLoad Index Str body Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Str If BoolOpAnd UnaryOpNot CompareIn NameLoad NameLoad UnaryOpNot BoolOpAnd CompareIn Str NameLoad UnaryOpNot NameLoad body Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str NameLoad If CompareEq NameLoad Dict Str Str NameLoad ListLoad body Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str If CompareNotEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Return Call NameLoad NameLoad decorator_list
N/A N/A Functions to read and process data from a LittleChef repository N/A os N/A simplejson json littlechef runner lib chef logbook Logger kitchen.settings REPO REPO_BASE_PATH kitchen.backends.plugins plugins N/A log N/A Logger __name__ N/A KITCHEN_DIR N/A N/A N/A os path join REPO_BASE_PATH N/A REPO N/A NAME N/A REPO N/A KITCHEN_SUBDIR N/A DATA_BAG_PATH N/A N/A N/A os path join KITCHEN_DIR data_bags node RepoError N/A Exception N/A N/A An error related to repository validity N/A N/A _check_kitchen N/A N/A N/A N/A N/A Checks whether there is a valid Chef repository N/A N/A N/A N/A N/A os path exists KITCHEN_DIR N/A N/A N/A RepoError N/A N/A Repo dir doesn't exist at '{0}' format KITCHEN_DIR N/A current_dir N/A N/A os getcwd N/A N/A N/A os chdir KITCHEN_DIR N/A N/A in_a_kitchen missing N/A N/A runner _check_appliances N/A N/A N/A os chdir current_dir N/A N/A in_a_kitchen N/A N/A missing_str N/A N/A N/A m N/A N/A N/A  and  join N/A N/A N/A N/A ,  join m rsplit ,  1 N/A N/A RepoError N/A N/A Couldn't find {0}.  format N/A missing_str missing N/A N/A N/A N/A N/A N/A os path exists DATA_BAG_PATH N/A N/A N/A RepoError The 'node' data bag has not yet been built N/A N/A True N/A build_node_data_bag N/A N/A N/A N/A N/A Tells LittleChef to build the node data bag N/A current_dir N/A N/A os getcwd N/A N/A N/A os chdir KITCHEN_DIR N/A N/A N/A N/A N/A N/A N/A lib get_recipes N/A N/A N/A chef build_node_data_bag N/A N/A N/A SystemExit N/A e N/A N/A N/A N/A log error e N/A N/A N/A N/A os chdir current_dir N/A True N/A get_environments N/A N/A nodes N/A N/A N/A Returns an environments set out of chef_environment values found N/A envs N/A set N/A counts N/A N/A node nodes N/A N/A env N/A N/A node get chef_environment none N/A N/A N/A envs add env N/A N/A N/A counts setdefault env 0 N/A N/A counts N/A env 1 N/A N/A N/A name counts env N/A counts N/A env N/A env N/A sorted envs N/A _data_loader N/A N/A data_type name N/A None N/A N/A Loads data from LittleChef's kitchen N/A current_dir N/A N/A os getcwd N/A N/A N/A os chdir KITCHEN_DIR N/A N/A N/A N/A N/A func N/A getattr lib N/A get_ data_type N/A name N/A N/A data N/A func name N/A N/A data N/A func N/A N/A N/A SystemExit N/A e N/A N/A N/A N/A log error e N/A N/A RepoError N/A N/A Error while loading {0} files. Possibly a JSON syntax error format data_type N/A N/A data N/A N/A N/A N/A os chdir current_dir N/A _load_data N/A N/A data_type name N/A None N/A N/A Loads the kitchen's node files N/A N/A _check_kitchen N/A N/A data_type N/A node nodes roles N/A N/A N/A N/A log error N/A N/A Unsupported data type '{0}' format data_type N/A None N/A N/A _data_loader data_type name N/A _load_extended_node_data N/A N/A nodes N/A N/A N/A Loads JSON node files from node databag, which has merged attributes N/A data N/A N/A node nodes N/A N/A filename N/A N/A N/A N/A node N/A name replace . _ .json N/A filepath N/A N/A N/A os path join DATA_BAG_PATH filename N/A N/A N/A N/A N/A os path exists filepath N/A N/A error 'node' data bag was not generated correctly: item  N/A error N/A N/A 'data_bag/node/{0}' is missing format filename N/A N/A RepoError error N/A N/A open filepath r f N/A N/A N/A N/A N/A N/A data append N/A N/A json loads N/A N/A f read N/A N/A N/A N/A json JSONDecodeError N/A e N/A N/A error LittleChef found the following error in N/A error N/A N/A  "{0}":
 {1} format filepath N/A str e N/A N/A RepoError error N/A data N/A inject_plugin_data N/A N/A nodes N/A N/A N/A Injects kitchen plugin data N/A node nodes N/A N/A N/A name plugin N/A N/A plugins iteritems N/A N/A N/A N/A N/A N/A plugin inject node N/A N/A N/A Exception N/A e N/A N/A N/A N/A log error N/A N/A Plugin '{0}' had an error: {1} format name e N/A N/A group_nodes_by_host N/A N/A nodes roles env N/A N/A N/A Returns a list of hosts with their virtual machines
    Hosts will only be returned if they or at least one of their guests belong
    to the specified environment and have assigned the specified roles.

     N/A hosts N/A filter_nodes nodes virt_roles host N/A guests N/A filter_nodes nodes virt_roles guest N/A filtered_hosts N/A N/A host hosts N/A N/A append False N/A N/A filter_nodes N/A host roles roles env env N/A N/A append True N/A vm N/A N/A N/A host N/A virtualization get guests N/A N/A N/A guest guests N/A N/A N/A N/A guest N/A fqdn N/A vm N/A fqdn N/A N/A N/A N/A vm update guest N/A N/A filter_nodes N/A guest roles roles env env N/A N/A append True N/A N/A append N/A N/A N/A N/A filtered_hosts append host N/A filtered_hosts N/A filter_nodes N/A N/A nodes env roles virt_roles N/A None N/A N/A Returns nodes which fulfill env, roles and virt_roles criteria N/A retval N/A N/A N/A roles N/A N/A roles N/A N/A virt_roles N/A N/A virt_roles N/A N/A virt_roles split , N/A node nodes N/A N/A append True N/A N/A env N/A N/A N/A node get chef_environment none env N/A N/A append False N/A roles N/A N/A N/A N/A N/A set intersection N/A set roles N/A set N/A N/A N/A N/A role split _ N/A 0 N/A role N/A node N/A roles N/A N/A append False N/A virt_roles N/A N/A virt_role N/A N/A N/A N/A node get virtualization N/A get role N/A N/A N/A N/A virt_role virt_roles N/A N/A N/A guest virt_roles N/A virt_role N/A N/A append False N/A append N/A N/A N/A N/A retval append node N/A retval N/A get_node N/A N/A name N/A N/A N/A Returns the given node N/A node N/A _load_data node name N/A N/A node N/A name run_list name N/A N/A N/A None N/A N/A node N/A get_nodes N/A N/A N/A N/A N/A Returns nodes present in the repository's 'nodes' directory N/A N/A _load_data nodes N/A get_nodes_extended N/A N/A nodes N/A None N/A N/A Returns node data from the automatic 'node' data_bag N/A N/A nodes None N/A N/A nodes N/A _load_data nodes N/A N/A _load_extended_node_data nodes N/A get_roles N/A N/A N/A N/A N/A Returns roles present in the repository's 'roles' directory N/A N/A _load_data roles N/A get_role_groups N/A N/A roles N/A N/A N/A Compiles a set of role prefixes N/A groups N/A set N/A role roles N/A N/A split N/A N/A N/A role N/A name split _ N/A N/A N/A split N/A 0 N/A REPO N/A EXCLUDE_ROLE_PREFIX N/A N/A N/A N/A groups add N/A split N/A 0 N/A N/A sorted groups N/A