Skip to content

Commit

Permalink
address undeclared variable
Browse files Browse the repository at this point in the history
  • Loading branch information
David Cruz committed Jan 11, 2023
1 parent c40626e commit 209c752
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/firewall/get_interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -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") == "" {
Expand Down
2 changes: 1 addition & 1 deletion cmd/globalProtect/get_users.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 209c752

Please sign in to comment.