Skip to content

Commit

Permalink
incus/network_allocations: Update for client changes
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed May 6, 2024
1 parent 3eac0f0 commit ecfd8b0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion cmd/incus/network_allocations.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,17 @@ func (c *cmdNetworkListAllocations) Run(cmd *cobra.Command, args []string) error

resource := resources[0]
server := resource.server.UseProject(c.flagProject)
addresses, err := server.GetNetworkAllocations(c.flagAllProjects)

if c.flagAllProjects {
addresses, err := server.GetNetworkAllocationsAllProjects()
if err != nil {
return err
}

return c.pretty(addresses)
}

addresses, err := server.GetNetworkAllocations()
if err != nil {
return err
}
Expand Down

0 comments on commit ecfd8b0

Please sign in to comment.