Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync tasks.py with cookiecutter #459

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
mkdocs==1.3.1
mkdocs-material==8.3.9
mkdocs-material==8.4.2
mkdocs-version-annotations==1.0.0
mkdocstrings==0.19
mkdocstrings-python==0.7.1
1 change: 0 additions & 1 deletion nautobot_golden_config/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class Migration(migrations.Migration):

initial = True

dependencies = [
Expand Down
1 change: 0 additions & 1 deletion nautobot_golden_config/migrations/0002_custom_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("nautobot_golden_config", "0001_initial"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [
("extras", "0004_populate_default_status_records"),
("nautobot_golden_config", "0002_custom_data"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [
("extras", "0004_populate_default_status_records"),
("nautobot_golden_config", "0003_auto_20210510_2356"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ def jsonify(apps, schedma_editor):


class Migration(migrations.Migration):

dependencies = [
("nautobot_golden_config", "0004_auto_20210616_2234"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def convert_many_repos(apps, schema_editor):


class Migration(migrations.Migration):

dependencies = [
("extras", "0013_default_fallback_value_computedfield"),
("nautobot_golden_config", "0005_json_compliance_rule"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def convert_many_repos(apps, schema_editor):


class Migration(migrations.Migration):

dependencies = [
("extras", "0013_default_fallback_value_computedfield"),
("nautobot_golden_config", "0006_multi_repo_support_temp_field"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("nautobot_golden_config", "0007_multi_repo_support_convert_many"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@


class Migration(migrations.Migration):

dependencies = [
("extras", "0018_joblog_data_migration"),
("nautobot_golden_config", "0008_multi_repo_support_final"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def convert_many_repos_part1(apps, schema_editor):


class Migration(migrations.Migration):

dependencies = [
("nautobot_golden_config", "0009_multiple_gc_settings_part_1"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@


class Migration(migrations.Migration):

dependencies = [
("nautobot_golden_config", "0010_multiple_gc_settings_part_2"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def convert_many_repos_part2(apps, schema_editor):


class Migration(migrations.Migration):

dependencies = [
("nautobot_golden_config", "0011_multiple_gc_settings_part_3"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("nautobot_golden_config", "0012_multiple_gc_settings_part_4"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("extras", "0018_joblog_data_migration"),
("nautobot_golden_config", "0013_multiple_gc_settings_part_5"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def save_existing_sotagg_queries(apps, schema_editor):


class Migration(migrations.Migration):

dependencies = [
("nautobot_golden_config", "0014_convert_sotagg_queries_part1"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [
("nautobot_golden_config", "0015_convert_sotagg_queries_part2"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def create_and_link_gql_queries(apps, schema_editor):


class Migration(migrations.Migration):

dependencies = [
("nautobot_golden_config", "0016_convert_sotagg_queries_part3"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("nautobot_golden_config", "0017_convert_sotagg_queries_part4"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [
("nautobot_golden_config", "0018_convert_sotagg_queries_part5"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def create_dynamic_groups(apps, schedma_editor):


class Migration(migrations.Migration):

dependencies = [
("nautobot_golden_config", "0019_convert_dynamicgroup_part_1"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("nautobot_golden_config", "0020_convert_dynamicgroup_part_2"),
]
Expand Down
1 change: 0 additions & 1 deletion nautobot_golden_config/nornir_plays/config_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ def config_backup(job_result, data):
},
},
) as nornir_obj:

nr_with_processors = nornir_obj.with_processors([ProcessGoldenConfig(logger)])

logger.log_debug("Run nornir backup tasks.")
Expand Down
1 change: 0 additions & 1 deletion nautobot_golden_config/nornir_plays/config_compliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ def config_compliance(job_result, data):
},
},
) as nornir_obj:

nr_with_processors = nornir_obj.with_processors([ProcessGoldenConfig(logger)])

logger.log_debug("Run nornir compliance tasks.")
Expand Down
1 change: 1 addition & 0 deletions nautobot_golden_config/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def render(self, value):
# Tables
#


# ConfigCompliance
class ConfigComplianceTable(BaseTable):
"""Table for rendering a listing of Device entries and their associated ConfigCompliance record status."""
Expand Down
1 change: 0 additions & 1 deletion nautobot_golden_config/utilities/management.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ def job_runner(handle_class, job_class, device=None, user=None):

# Report on success/failure
for test_name, attrs in job_result.data.items():

if test_name in ["total", "output"]:
continue

Expand Down