From 209c752b00e19936302cc6a843d2629cc86db440 Mon Sep 17 00:00:00 2001 From: David Cruz Date: Wed, 11 Jan 2023 12:29:27 -0800 Subject: [PATCH] address undeclared variable --- cmd/firewall/get_interfaces.go | 2 +- cmd/globalProtect/get_users.go | 2 +- cmd/root.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/firewall/get_interfaces.go b/cmd/firewall/get_interfaces.go index e616535..9522f11 100644 --- a/cmd/firewall/get_interfaces.go +++ b/cmd/firewall/get_interfaces.go @@ -106,7 +106,7 @@ Examples: > panos-cli firewall get interfaces --has-ip --name "eth*","ae*" fw01.example.com`, Run: func(cmd *cobra.Command, args []string) { // Ensure at least one host is specified - hosts = cmd.Flags().Args() + hosts := cmd.Flags().Args() if len(hosts) == 0 { if isInputFromPipe() { if viper.GetString("apikey") == "" { diff --git a/cmd/globalProtect/get_users.go b/cmd/globalProtect/get_users.go index ae13de5..d107e74 100644 --- a/cmd/globalProtect/get_users.go +++ b/cmd/globalProtect/get_users.go @@ -135,7 +135,7 @@ Examples: // Print statistics if stats { - fmt.Fprintf(os.Stderr, "\nConnected Users:\n\n") + fmt.Fprintf(os.Stderr, "\nConnected Users per gateway:\n\n") for _, k := range keys { if k == "total" { continue diff --git a/cmd/root.go b/cmd/root.go index ca61e79..447871c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -12,7 +12,7 @@ import ( ) const ( - VERSION string = "0.9.3" + VERSION string = "0.9.4" VIPER_CONFIG_NAME string = ".panos-cli" VIPER_CONFIG_PATH string = "$HOME" )