fix cniAsset from env var

This commit is contained in:
Hanfei Shen 2017-07-10 19:29:21 +08:00 committed by Hanfei Shen
parent 750d9b0c31
commit b54724a3ea
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) {