Skip to content

Commit 78f9802

Browse files
committed
Fix switch dns flipper to fox
1 parent d0c0e93 commit 78f9802

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dbaas/workflow/steps/mysql/flipperfox_migration/switch_dns.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def do(self, workflow_dict):
2626
databaseinfraattr = workflow_dict['source_secondary_ips'][0]
2727

2828
infradns = DatabaseInfraDNSList.objects.get(
29-
name__startswith="{}.".format(databaseinfra.name),
29+
dns__startswith="{}.".format(databaseinfra.name),
3030
type=FLIPPER)
3131
infradns.type = FOXHA
3232
infradns.save()
@@ -74,7 +74,7 @@ def undo(self, workflow_dict):
7474
databaseinfraattr = workflow_dict['source_secondary_ips'][0]
7575

7676
dnslist = DatabaseInfraDNSList.objects.filter(
77-
name__startswith="{}.".format(databaseinfra.name),
77+
dns__startswith="{}.".format(databaseinfra.name),
7878
type=FOXHA)
7979
if dnslist:
8080
infradns = dnslist[0]

0 commit comments

Comments
 (0)