-
Notifications
You must be signed in to change notification settings - Fork 7
Job run failed, but Dry run is successful #119
Comments
Can you please provide the traceback? I need to know where in the code it's throwing the IndexError. |
Below is the traceback, not sure if it's related to issue #116 Traceback (most recent call last): |
@jdrew82 Were you able to find the issue in the nautobot model? |
@ksoufan I've not had a chance to look into this one yet. I'll try to take a look today or tomorrow. It's a bit of an odd error. What do you have in your |
Yep, the Nautobot instance is a fresh installed and trying to pull all from cloudvision. |
@ksoufan Can you please share your settings for the plugin from |
Actually, nevermind. I've recreated this in my unit tests. It's definitely because there's no capture group in your |
* test: ✅ Update override settings for tests to be explicit to remove dependence on dev config. To ensure that any changes to the plugin settings in the dev settings doesn't impact the test I'm explicitly setting the hostname patterns and site or role mappings accordingly. * fix: 🐛 Add validation that site or role named capture group is in hostname_patterns. Fixes 119. To ensure that the match group for site or role is defined in the hostname_patterns setting we need to check for it. This fixes the issue that was detailed in #119. I've also included some unit tests to confirm that defining only site or role capture groups should work. Co-authored-by: Justin Drew <jdrew82@users.noreply.github.com>
@ksoufan can you confirm if this is still an issue or not? |
@jdrew82 I tried upgrading the plugin but I got the same version, how do I install this fix? |
@ksoufan This would most likely be because a new release hasn't been cut yet. I'm working on having that done. Until that's done, you'll need to pull from the develop branch of this repo. There are steps on how you can do that detailed in my recent blog post: https://blog.networktocode.com/post/manage_nautobot_poetry/. |
@ksoufan We've got a new release cut and pushed to PyPI so you should be able to install from there. That should address your issue and we can close this out. |
@ksoufan did updating resolve your issue? |
@ksoufan I'm closing this as there hasn't been a response in awhile. If there is still an issue, please open an issue on the aggregate nautobot-ssot app. |
Environment
Sync completed
Getting IndexError
Dry run is successful
The text was updated successfully, but these errors were encountered: