Skip to content

Commit 70cbfe5

Browse files
fixed indentation errors
1 parent 57f1c99 commit 70cbfe5

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

config/vlan.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,15 @@ def del_vlan(db, vid, multiple, no_restart_dhcp_relay):
165165

166166

167167

168-
vlans = db.cfgdb.get_keys('VLAN')
169-
if not vlans:
170-
docker_exec_cmd = "docker exec -i swss {}"
171-
_, rc = clicommon.run_command(docker_exec_cmd.format("supervisorctl status ndppd"), ignore_error=True, return_cmd=True)
172-
if rc == 0:
173-
click.echo("No VLANs remaining, stopping ndppd service")
174-
clicommon.run_command(docker_exec_cmd.format("supervisorctl stop ndppd"), ignore_error=True, return_cmd=True)
175-
clicommon.run_command(docker_exec_cmd.format("rm -f /etc/supervisor/conf.d/ndppd.conf"), ignore_error=True, return_cmd=True)
176-
clicommon.run_command(docker_exec_cmd.format("supervisorctl update"), return_cmd=True)
168+
vlans = db.cfgdb.get_keys('VLAN')
169+
if not vlans:
170+
docker_exec_cmd = "docker exec -i swss {}"
171+
_, rc = clicommon.run_command(docker_exec_cmd.format("supervisorctl status ndppd"), ignore_error=True, return_cmd=True)
172+
if rc == 0:
173+
click.echo("No VLANs remaining, stopping ndppd service")
174+
clicommon.run_command(docker_exec_cmd.format("supervisorctl stop ndppd"), ignore_error=True, return_cmd=True)
175+
clicommon.run_command(docker_exec_cmd.format("rm -f /etc/supervisor/conf.d/ndppd.conf"), ignore_error=True, return_cmd=True)
176+
clicommon.run_command(docker_exec_cmd.format("supervisorctl update"), return_cmd=True)
177177

178178

179179
def restart_ndppd():

scripts/db_migrator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ def version_4_0_1(self):
975975
self.set_version('version_4_0_2')
976976
return 'version_4_0_2'
977977

978-
def version_4_0_2(self):
978+
def version_4_0_2(self):
979979
"""
980980
Version 4_0_2.
981981
"""

0 commit comments

Comments
 (0)