Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfrancis committed Oct 7, 2020
1 parent 596c56d commit 60c468e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,12 @@ func autofillApimodel(dc *deployCmd) error {
return errors.New("apimodel: missing masterProfile.dnsPrefix and --dns-prefix was not specified")
}
dc.containerService.Properties.MasterProfile.DNSPrefix = dc.dnsPrefix
if dc.autoSuffix {
suffix := strconv.FormatInt(time.Now().Unix(), 16)
dc.containerService.Properties.MasterProfile.DNSPrefix += "-" + suffix
log.Infof("Generated random suffix %s, DNS Prefix is %s", suffix, dc.containerService.Properties.MasterProfile.DNSPrefix)
}
}

if dc.autoSuffix {
suffix := strconv.FormatInt(time.Now().Unix(), 16)
dc.containerService.Properties.MasterProfile.DNSPrefix += "-" + suffix
log.Infof("Generated random suffix %s, DNS Prefix is %s", suffix, dc.containerService.Properties.MasterProfile.DNSPrefix)
}

if dc.outputDirectory == "" {
Expand Down

0 comments on commit 60c468e

Please sign in to comment.