Skip to content

Commit

Permalink
remove useless flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sgsullivan committed Jan 4, 2021
1 parent adaf6af commit a6f141e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/cloudNetworkPrivateDetails.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@ Applications that communicate internally will frequently use this for both secur
and cost-savings.
`,
Run: func(cmd *cobra.Command, args []string) {
allFlag, _ := cmd.Flags().GetBool("all")

var uniqIds []string

if len(cloudNetworkPrivateDetailsCmdUniqIdFlag) == 0 || allFlag {
if len(cloudNetworkPrivateDetailsCmdUniqIdFlag) == 0 {
methodArgs := instance.AllPaginatedResultsArgs{
Method: "bleed/storm/server/list",
ResultsPerPage: 100,
Expand Down Expand Up @@ -90,5 +88,4 @@ func init() {
cloudNetworkPrivateCmd.AddCommand(cloudNetworkPrivateDetailsCmd)
cloudNetworkPrivateDetailsCmd.Flags().StringSliceVar(&cloudNetworkPrivateDetailsCmdUniqIdFlag, "uniq-id",
[]string{}, "uniq-ids separated by ',' of Cloud Servers to fetch private networking details for")
cloudNetworkPrivateDetailsCmd.Flags().Bool("all", false, "get details for all Cloud Servers")
}

0 comments on commit a6f141e

Please sign in to comment.