~go-bot/goose/trunk

« back to all changes in this revision

Viewing changes to testservices/novaservice/service.go

[r=wallyworld,dimitern] Preserve negative ports on novaservice.


https://codereview.appspot.com/8796045/

Show diffs side-by-side

added added

removed removed

Lines of Context:
458
458
                        Name:     sourceGroup.Name,
459
459
                }
460
460
        }
461
 
        if rule.FromPort > 0 {
 
461
        if rule.FromPort != 0 {
462
462
                newrule.FromPort = &rule.FromPort
463
463
        }
464
 
        if rule.ToPort > 0 {
 
464
        if rule.ToPort != 0 {
465
465
                newrule.ToPort = &rule.ToPort
466
466
        }
467
467
        if rule.IPProtocol != "" {