fix: use correct flag positional argument
This commit is contained in:
1 parent
72eb8a06f0
commit
25759bcbb4
6 files changed
+20
-20
No files matched your search
@@ -12,10 +12,10 @@ import (
|
||||
// write the ipaddress to stdout for a given app container
|
||||
func main() {
|
||||
flag.Parse()
|
||||
appName := flag.Arg(1)
|
||||
procType := flag.Arg(2)
|
||||
isHerokuishContainer := common.ToBool(flag.Arg(3))
|
||||
containerId := flag.Arg(4)
|
||||
appName := flag.Arg(0)
|
||||
procType := flag.Arg(1)
|
||||
isHerokuishContainer := common.ToBool(flag.Arg(2))
|
||||
containerId := flag.Arg(3)
|
||||
|
||||
ipAddress := network.GetContainerIpaddress(appName, procType, isHerokuishContainer, containerId)
|
||||
fmt.Fprintln(os.Stdout, ipAddress)
|
||||
|
||||
Reference in new issue
Block a user