CausticLab / go-rancher-gen

:cow: Generate configuration files using templates and Rancher Metadata
MIT License
0 stars 2 forks source link

Misleading warning in parseServicePorts #8

Closed mathuin closed 6 years ago

mathuin commented 7 years ago

https://github.com/CausticLab/go-rancher-gen/blob/master/runner.go#L456

The warning is poorly placed. It should probably be in an else block after the preceding if, since the expected format of service ports is to split them on a colon.