mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01:48:38 -06:00
renaturalize command should not skip any values
This commit is contained in:
parent
0d91b6b74b
commit
344fa72357
@ -88,14 +88,6 @@ class Command(BaseCommand):
|
|||||||
for value in queryset:
|
for value in queryset:
|
||||||
naturalized_value = naturalize(value)
|
naturalized_value = naturalize(value)
|
||||||
|
|
||||||
# Skip any naturalized values that don't differ from their original form
|
|
||||||
if value == naturalized_value:
|
|
||||||
if options['verbosity'] >= 3:
|
|
||||||
self.stdout.write(self.style.WARNING(
|
|
||||||
" {} == {} (skipped)".format(value, naturalized_value)
|
|
||||||
))
|
|
||||||
continue
|
|
||||||
|
|
||||||
if options['verbosity'] >= 2:
|
if options['verbosity'] >= 2:
|
||||||
self.stdout.write(" {} -> {}".format(value, naturalized_value), ending='')
|
self.stdout.write(" {} -> {}".format(value, naturalized_value), ending='')
|
||||||
self.stdout.flush()
|
self.stdout.flush()
|
||||||
|
Loading…
Reference in New Issue
Block a user