Return missing ClusterID error instead of ignoring it

This fixes issue #57382.
This commit is contained in:
Arto Jantunen 2018-02-21 08:40:59 +02:00
parent a58f16bdfa
commit cba110aa3d

View File

@ -75,7 +75,7 @@ func (t *awsTagging) init(legacyClusterID string, clusterID string) error {
if clusterID != "" {
glog.Infof("AWS cloud filtering on ClusterID: %v", clusterID)
} else {
glog.Warning("AWS cloud - no clusterID filtering applied for shared resources; do not run multiple clusters in this AZ.")
return fmt.Errorf("AWS cloud failed to find ClusterID")
}
return nil