Skip to content

Commit

Permalink
Update nautobot_ssot/integrations/aristacv/utils/nautobot.py
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Drew <2396364+jdrew82@users.noreply.github.com>
  • Loading branch information
snaselj and jdrew82 authored Apr 11, 2024
1 parent cfbadc6 commit c190f62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nautobot_ssot/integrations/aristacv/utils/nautobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ def verify_site(site_name):
try:
site_obj = Location.objects.get(name=site_name, location_type=loc_type)
except Location.DoesNotExist:
status, _ = Status.objects.get_or_create(name="Staging")
status, created = Status.objects.get_or_create(name="Staging")
if created:
status.content_types.add(ContentType.objects.get_for_model(Location))
site_obj = Location.objects.create(
name=site_name,
status=status,
Expand Down

0 comments on commit c190f62

Please sign in to comment.