Refactor CurrentContextEntryPoint function

Currently it takes ClusterType as first parameter, however
this parameter can be retrieved via appropriate function
CurrentContextClusterType in the same module.

Change-Id: I205fd7d00bf1745cada88d8fd972dac1dbe0fddf
This commit is contained in:
Ruslan Aliev
2020-04-29 06:17:00 -05:00
parent 5dc4881d20
commit af9e46dfec
5 changed files with 12 additions and 14 deletions

View File

@@ -54,7 +54,7 @@ func GenerateBootstrapIso(settings *environment.AirshipCTLSettings) error {
// TODO (dukov) replace with the appropriate function once it's available
// in document module
root, err := globalConf.CurrentContextEntryPoint(config.Ephemeral, config.BootstrapPhase)
root, err := globalConf.CurrentContextEntryPoint(config.BootstrapPhase)
if err != nil {
return err
}