Skip to content

Commit

Permalink
Merge pull request #307 from russellb/ami-fix-for-libvirt
Browse files Browse the repository at this point in the history
config: Only determine AMI for aws platform.
  • Loading branch information
openshift-merge-robot committed Sep 21, 2018
2 parents 3539305 + 76a32aa commit 749b188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/types/config/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func ParseConfig(data []byte) (*Cluster, error) {
cluster.PullSecret = string(data)
}

if cluster.EC2AMIOverride == "" {
if cluster.Platform == PlatformAWS && cluster.EC2AMIOverride == "" {
ctx, cancel := context.WithTimeout(context.TODO(), 30*time.Second)
defer cancel()

Expand Down

0 comments on commit 749b188

Please sign in to comment.