Skip to content

Commit 590abd7

Browse files
committed
alpha: appstate dns
1 parent 34b565b commit 590abd7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/actions/deploy.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,8 @@ type dnsSetup struct {
182182
func (d *Deploy) prepareAppDNSMap(appStates map[string]*types.AppState) (map[string]*types.DNSState, error) {
183183
dnsMap := make(map[string]*types.DNSState)
184184

185-
for _, app := range d.cfg.Apps {
186-
appState, ok := appStates[app.ID()]
187-
if !ok || appState.DNS == nil || !appState.DNS.Manual || (appState.DNS.CNAME == "" && appState.DNS.IP == "") {
185+
for _, appState := range appStates {
186+
if appState.DNS == nil || !appState.DNS.Manual || (appState.DNS.CNAME == "" && appState.DNS.IP == "") {
188187
continue
189188
}
190189

0 commit comments

Comments
 (0)