Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
fix: PostClaimDevicesLicensesAndOrders
Browse files Browse the repository at this point in the history
Updated dashboard-api-golang  module to alpha-1.9
updated/renamed PostClaimDevicesLicensesAndOrders
PostNetworks updated to include struct CreateNetwork{}
  • Loading branch information
“Dexter committed Jul 25, 2021
1 parent 3c1fd25 commit 2862206
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/post/meraki.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func init() {
OrgCmd.AddCommand(organization.PostAdmins)
OrgCmd.AddCommand(organization.PostAssignSeats)
OrgCmd.AddCommand(organization.PostBrandingPolicy)
OrgCmd.AddCommand(organization.PostClaim)
OrgCmd.AddCommand(organization.PostClaimDevicesLicensesAndOrders)
OrgCmd.AddCommand(organization.PostClone)
OrgCmd.AddCommand(organization.PostCombineNetworks)
OrgCmd.AddCommand(organization.PostConfigurationTemplate)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.14

require (
github.com/blang/semver v3.5.1+incompatible
github.com/ddexterpark/dashboard-api-golang v0.0.0-20210713144337-af189b85f8b6
github.com/ddexterpark/dashboard-api-golang v0.0.0-20210725041911-007de63d94b3
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/kr/pretty v0.2.1
github.com/magiconair/properties v1.8.4 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ github.com/ddexterpark/dashboard-api-golang v0.0.0-20210110043749-4137d274e50b h
github.com/ddexterpark/dashboard-api-golang v0.0.0-20210110043749-4137d274e50b/go.mod h1:KhqagWN61AhBWmX2z/HH/fjSZo8mqmaiarHs3DgMG/8=
github.com/ddexterpark/dashboard-api-golang v0.0.0-20210713144337-af189b85f8b6 h1:X2DVH+IO0/MUQDzCGG/MksaD9B/uYysU6gd6Q7DY1j0=
github.com/ddexterpark/dashboard-api-golang v0.0.0-20210713144337-af189b85f8b6/go.mod h1:KhqagWN61AhBWmX2z/HH/fjSZo8mqmaiarHs3DgMG/8=
github.com/ddexterpark/dashboard-api-golang v0.0.0-20210725041911-007de63d94b3 h1:a2I4dAQU54wukJRJrUz2oAxjbP5e1w/Qzix3DlXAUGg=
github.com/ddexterpark/dashboard-api-golang v0.0.0-20210725041911-007de63d94b3/go.mod h1:KhqagWN61AhBWmX2z/HH/fjSZo8mqmaiarHs3DgMG/8=
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
Expand Down
8 changes: 4 additions & 4 deletions meraki/general/organization/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ var PostNetworks = &cobra.Command{
if org == "" {
org = args[0]
}
var format configure.Networks
var format configure.CreateNetwork
input, _ := shell.ReadConfigFile(cmd, &format)
metadata := configure.PostNetworks(org, input)

Expand Down Expand Up @@ -842,17 +842,17 @@ var PostOrganization = &cobra.Command{
},
}

var PostClaim = &cobra.Command{
var PostClaimDevicesLicensesAndOrders = &cobra.Command{
Use: "claim",
Short: "Claim a list of devices, licenses, and/or orders into an organization.",
Run: func(cmd *cobra.Command, args []string) {
org, _, _ := shell.ResolveFlags(cmd.Flags())
if org == "" {
org = args[0]
}
var format configure.Claim
var format configure.ClaimDevicesLicensesAndOrders
input, _ := shell.ReadConfigFile(cmd, &format)
metadata := configure.PostClaim(org, input)
metadata := configure.PostClaimDevicesLicensesAndOrders(org, input)
shell.Display(metadata, "organization", cmd.Flags())
},
}
Expand Down

0 comments on commit 2862206

Please sign in to comment.