Skip to content

Commit

Permalink
device: Update config wireguard to use getDeviceApi
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Doan <[email protected]>
  • Loading branch information
doanac committed Jun 6, 2024
1 parent d79811f commit 2645c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subcommands/devices/config_wireguard.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func doConfigWireguard(cmd *cobra.Command, args []string) {
factory := viper.GetString("factory")
logrus.Debug("Configuring wireguard")

d := api.DeviceApiByName(factory, args[0])
d := getDeviceApi(cmd, args[0])

// Ensure the device has a public key we can encrypt with
wcc := loadWireguardClientConfig(d)
Expand Down

0 comments on commit 2645c52

Please sign in to comment.