Skip to content

Commit

Permalink
more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
emilymye committed May 6, 2019
1 parent 50bf64a commit 28d2414
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion third_party/terraform/utils/compute_instance_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,15 @@ func flattenAliasIpRange(ranges []*computeBeta.AliasIpRange) []map[string]interf

func expandScheduling(v interface{}) (*computeBeta.Scheduling, error) {
if v == nil {
// We can't set default values for lists.
return &computeBeta.Scheduling{
AutomaticRestart: googleapi.Bool(true),
}, nil
}

ls := v.([]interface{})
if len(ls) == 0 {
// We can't set default values for lists.
// We can't set default values for lists
return &computeBeta.Scheduling{
AutomaticRestart: googleapi.Bool(true),
}, nil
Expand Down

0 comments on commit 28d2414

Please sign in to comment.