Merge pull request #2897 from qqshfox/cni_assets_from_env_var

fix cniAsset from env var
This commit is contained in:
Chris Love 2017-07-13 08:26:07 -06:00 committed by GitHub
commit 87ad3eeaeb
1 changed files with 6 additions and 1 deletions

View File

@ -238,7 +238,12 @@ func (c *ApplyClusterCmd) Run() error {
return err
}
c.Assets = append(c.Assets, cniAssetHashString+"@"+cniAsset)
if cniAssetHashString == "" {
glog.Warningf("cniAssetHashString is empty, using cniAsset directly: %s", cniAsset)
c.Assets = append(c.Assets, cniAsset)
} else {
c.Assets = append(c.Assets, cniAssetHashString+"@"+cniAsset)
}
}
if needsStaticUtils(cluster, c.InstanceGroups) {