Skip to content

Commit

Permalink
Merge pull request #186 from nautobot/network-ssot-integration
Browse files Browse the repository at this point in the history
hidden job outputs to file, prep beta2
  • Loading branch information
jeffkala authored May 29, 2024
2 parents f43b4d8 + d91ccbe commit e44b94a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion nautobot_device_onboarding/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import csv
import logging
import json
from io import StringIO

from diffsync.enum import DiffSyncFlags
Expand Down Expand Up @@ -753,7 +754,8 @@ def run(self, *args, **kwargs):
)
except Exception as err: # pylint: disable=broad-exception-caught
self.logger.info("Error During Sync Devices Command Getter: %s", err)
return compiled_results
self.create_file("command_outputs.json", json.dumps(compiled_results))
return f"Successfully ran the following commands: {', '.join(list(compiled_results.keys()))}"


jobs = [OnboardingTask, SSOTSyncDevices, SSOTSyncNetworkData, DeviceOnboardingTroubleshootingJob]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nautobot-device-onboarding"
version = "4.0.0b0"
version = "4.0.0b1"
description = "A app for Nautobot to easily onboard new devices."
authors = ["Network to Code, LLC <info@networktocode.com>"]
license = "Apache-2.0"
Expand Down

0 comments on commit e44b94a

Please sign in to comment.