Skip to content

Commit

Permalink
#9047 - Clean up account migration
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSheps committed Mar 24, 2023
1 parent 51fe68c commit 1230146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/circuits/migrations/0042_provideraccount.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def create_provideraccounts_from_providers(apps, schema_editor):
for provider in Provider.objects.all():
if provider.account is not None:
provideraccount = ProviderAccount.objects.create(
name=f'{provider.name} {provider.account}',
name=f'{provider.name} {provider.account}' if provider.account else f'{provider.name}',
account=provider.account,
provider=provider,
)
Expand Down

0 comments on commit 1230146

Please sign in to comment.