Module ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body For NameStore Call AttributeLoad Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str NameLoad NameLoad If NameLoad body Expr Call AttributeLoad Call NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If UnaryOpNot NameLoad body Assign NameStore Dict Str Str Str NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Index Num If CompareNotIn NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad Lambda arguments args NameParam defaults CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad NameLoad For NameStore Call NameLoad Num Call NameLoad NameLoad body FunctionDef arguments args NameParam defaults body If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str Return Call NameLoad Call AttributeLoad NameLoad attr Str Dict NameLoad decorator_list Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Index Num TryExcept body Expr Call AttributeLoad Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults UnaryOpNot Call NameLoad NameLoad NameLoad ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str attr handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Call NameLoad NameLoad Assign SubscriptStore NameLoad Index AttributeLoad SubscriptLoad NameLoad Index Str attr Dict Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad attr SubscriptLoad NameLoad Index Str attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Continue Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad While NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Break Assign NameStore Call SubscriptLoad NameLoad Index Str Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore NameLoad TryExcept body If Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str body If Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr orelse Assign NameStore AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr handlers ExceptHandler type NameLoad body Pass If NameLoad body If CompareNotIn NameLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr body If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Continue orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad SubscriptLoad NameLoad Index Str Break orelse Assign NameStore AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Index NameLoad attr If Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr body If NameLoad body Assign SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad NameLoad orelse If Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr body If NameLoad body Assign SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad NameLoad orelse If BoolOpAnd Call NameLoad NameLoad Str Call NameLoad AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num attr AttributeLoad AttributeLoad NameLoad attr attr body If NameLoad body Expr Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Str orelse Expr Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr orelse Expr Call NameLoad NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body If Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Expr Call NameLoad NameLoad NameLoad Call AttributeLoad Call AttributeLoad Call NameLoad attr SubscriptLoad NameLoad Index Num attr SubscriptLoad NameLoad Index Num orelse If Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body For NameStore SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Call AttributeLoad Call AttributeLoad Call NameLoad attr SubscriptLoad NameLoad Index Num attr NameLoad Expr Call AttributeLoad Call NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad attr Assign SubscriptStore SubscriptLoad NameLoad Index AttributeLoad SubscriptLoad NameLoad Index Str attr Index SubscriptLoad NameLoad Index Str NameLoad If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Str decorator_list FunctionDef arguments args defaults body Return ListLoad Str Call NameLoad decorator_list FunctionDef arguments args defaults body If Call AttributeLoad Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Str Return Assign NameStore Call NameLoad For NameStore AttributeLoad NameLoad attr body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore NameLoad orelse For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Break If Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body With Call NameLoad NameLoad Str NameStore body Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore Str Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad For NameStore Call AttributeLoad Call AttributeLoad Call NameLoad attr NameLoad attr body Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Assign SubscriptStore NameLoad Index Str BinOpMod Str TupleLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Dict Expr Call AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Continue If UnaryOpNot Call NameLoad NameLoad BinOpAdd TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Str Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad keyword Num decorator_list
N/A datetime datetime N/A itertools N/A jinja2 N/A os.path N/A Queue N/A six N/A sys N/A yaml oslo_serialization jsonutils sqlalchemy orm N/A sqlalchemy.types nailgun.db db nailgun.db.sqlalchemy models nailgun.extensions fire_callback_on_node_create nailgun.logger logger nailgun objects nailgun.settings settings nailgun.utils dict_merge capitalize_model_name N/A N/A model_name N/A N/A N/A N/A N/A join N/A map N/A N/A N/A s N/A N/A N/A s capitalize N/A N/A model_name split _ N/A load_fake_deployment_tasks N/A N/A apply_to_db commit N/A True True N/A N/A Load fake deployment tasks

    :param apply_to_db: if True applying to all releases in db
    :param commit: boolean
     N/A fxtr_path N/A N/A N/A os path join N/A get_base_fixtures_path deployment_tasks.yaml N/A N/A open fxtr_path f N/A N/A deployment_tasks N/A N/A yaml load f N/A apply_to_db N/A N/A rel N/A N/A N/A N/A N/A db query N/A models Release all N/A N/A N/A N/A N/A objects DeploymentGraph create_for_model N/A tasks deployment_tasks rel N/A commit N/A N/A N/A N/A N/A db commit N/A N/A deployment_tasks N/A template_fixture N/A N/A fileobj N/A kwargs N/A N/A N/A N/A N/A kwargs get settings N/A N/A N/A kwargs N/A settings settings N/A t N/A N/A jinja2 Template N/A N/A fileobj read N/A N/A N/A six StringIO N/A N/A t render kwargs N/A load_fixture N/A N/A fileobj loader N/A None N/A N/A N/A loader N/A N/A loaders N/A .json .yaml .yml jsonutils yaml yaml N/A extension N/A N/A N/A N/A os path splitext N/A fileobj name N/A 1 N/A N/A extension loaders N/A N/A N/A Exception N/A N/A Unknown file extension '{0}' format extension N/A loader N/A loaders N/A extension N/A fixture N/A N/A loader load N/A template_fixture fileobj N/A fixture N/A filter N/A N/A N/A obj N/A N/A N/A N/A obj get pk None fixture N/A i N/A range 0 N/A len fixture N/A extend N/A N/A obj N/A N/A N/A N/A extend obj N/A N/A N/A obj N/A extend N/A extend N/A obj N/A extend N/A N/A dict_merge N/A N/A obj get extend N/A obj N/A N/A N/A fixture N/A i N/A extend N/A fixture N/A i N/A N/A N/A N/A fixture N/A i pop extend None N/A fixture N/A upload_fixture N/A N/A fileobj loader N/A None N/A N/A fixture N/A load_fixture fileobj loader N/A queue N/A N/A Queue Queue N/A keys N/A N/A obj fixture N/A N/A pk N/A obj N/A pk N/A model_name N/A N/A N/A N/A obj N/A model split . N/A 1 N/A N/A N/A N/A N/A N/A N/A itertools dropwhile N/A N/A N/A m N/A N/A N/A hasattr models m N/A N/A N/A model_name capitalize N/A N/A join N/A map N/A N/A N/A n N/A N/A N/A n capitalize N/A N/A model_name split _ next N/A N/A N/A StopIteration N/A N/A N/A Exception N/A N/A Couldn't find model {0} format model_name N/A N/A obj N/A model N/A getattr models N/A capitalize_model_name model_name N/A N/A keys N/A N/A N/A obj N/A model __tablename__ N/A N/A obj_from_db N/A N/A N/A N/A N/A db query N/A obj N/A model get pk N/A obj_from_db N/A N/A N/A N/A logger info Fixture model '%s' with pk='%s' already uploaded. Skipping model_name pk N/A N/A N/A N/A queue put obj N/A pending_objects N/A N/A True N/A N/A N/A N/A obj N/A N/A queue get_nowait N/A N/A N/A Exception N/A N/A N/A new_obj N/A N/A obj N/A model N/A fk_fields N/A N/A N/A field value N/A N/A six iteritems N/A obj N/A fields N/A N/A f N/A getattr N/A obj N/A model field N/A impl N/A getattr f impl None N/A fk_model None N/A N/A N/A N/A hasattr N/A N/A f comparator prop argument N/A N/A N/A hasattr N/A N/A N/A f comparator prop argument __call__ N/A N/A fk_model N/A N/A N/A N/A f comparator prop argument N/A N/A fk_model N/A N/A N/A N/A f comparator prop argument class_ N/A N/A N/A AttributeError N/A N/A N/A fk_model N/A N/A N/A value N/A keys N/A N/A fk_model __tablename__ N/A N/A N/A obj pending_objects N/A N/A N/A N/A queue put obj N/A N/A N/A pending_objects append obj N/A N/A N/A N/A N/A logger error N/A N/A Can't resolve foreign key '{0}' for object '{1}' format field N/A obj N/A model N/A N/A N/A value N/A N/A N/A keys N/A N/A fk_model __tablename__ N/A value id N/A N/A isinstance impl N/A N/A orm attributes ScalarObjectAttributeImpl N/A N/A value N/A N/A N/A fk_fields N/A field N/A value fk_model N/A N/A N/A isinstance impl N/A N/A orm attributes CollectionAttributeImpl N/A N/A value N/A N/A N/A fk_fields N/A field N/A value fk_model N/A N/A N/A N/A hasattr f property N/A isinstance N/A N/A N/A N/A f property columns N/A 0 type N/A N/A sqlalchemy types DateTime N/A N/A value N/A N/A N/A setattr new_obj field N/A N/A datetime strptime value %d-%m-%Y %H:%M:%S N/A N/A N/A setattr new_obj field N/A N/A datetime now N/A N/A N/A setattr new_obj field value N/A N/A field data N/A N/A six iteritems fk_fields N/A N/A N/A isinstance N/A data N/A 0 int N/A N/A N/A setattr new_obj field N/A N/A N/A N/A N/A db query N/A data N/A 1 get N/A data N/A 0 N/A N/A N/A isinstance N/A data N/A 0 list N/A N/A v N/A data N/A 0 N/A N/A N/A N/A N/A getattr new_obj field append N/A N/A N/A N/A N/A db query N/A data N/A 1 get v N/A N/A N/A N/A db add new_obj N/A N/A N/A N/A db commit N/A N/A N/A keys N/A N/A N/A obj N/A model __tablename__ N/A N/A obj N/A pk new_obj N/A N/A N/A N/A new_obj __class__ __name__ Node N/A N/A N/A N/A N/A objects Node update_interfaces new_obj N/A N/A fire_callback_on_node_create new_obj N/A N/A N/A N/A db commit N/A get_base_fixtures_path N/A N/A N/A N/A N/A N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ .. .. fixtures N/A get_all_fixtures_paths N/A N/A N/A N/A N/A N/A /etc/nailgun/fixtures N/A get_base_fixtures_path N/A upload_fixtures N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A db query N/A models Release count N/A N/A N/A N/A logger info Fixtures are already uploaded. Skipping N/A N/A fixtures_paths N/A get_all_fixtures_paths N/A orig_path N/A settings FIXTURES_TO_UPLOAD N/A N/A N/A N/A N/A os path isabs orig_path N/A N/A path orig_path N/A N/A fixtures_path fixtures_paths N/A N/A path N/A N/A N/A os path abspath N/A N/A N/A os path join fixtures_path orig_path N/A N/A N/A os access path N/A os R_OK N/A N/A N/A N/A N/A os access path N/A os R_OK N/A N/A N/A open path r fileobj N/A N/A N/A upload_fixture fileobj N/A N/A N/A logger info Fixture has been uploaded from file: %s path N/A dump_fixture N/A N/A model_name N/A N/A N/A dump N/A N/A app_name nailgun N/A model N/A getattr models N/A capitalize_model_name model_name N/A obj N/A N/A N/A N/A N/A db query model all N/A N/A obj_dump N/A N/A N/A obj_dump N/A pk N/A getattr obj N/A N/A N/A N/A model __mapper__ primary_key N/A 0 name N/A N/A obj_dump N/A model N/A %s.%s N/A app_name model_name N/A N/A obj_dump N/A fields N/A N/A N/A N/A dump append obj_dump N/A prop N/A N/A model __mapper__ iterate_properties N/A N/A N/A isinstance prop N/A N/A sqlalchemy orm ColumnProperty N/A N/A field N/A str N/A prop key N/A value N/A getattr obj field N/A N/A value None N/A N/A N/A N/A N/A isinstance value N/A N/A list dict int float bool N/A six string_types N/A N/A value N/A N/A N/A obj_dump N/A fields N/A field value N/A N/A N/A N/A sys stdout write N/A N/A jsonutils dumps dump indent 4 N/A