You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
### Added
11
11
- Support nested properties in `database properties *` and `database properties * show *` outputs. For example upctl `max_background_workers` sub-property of `timescaledb` PostgreSQL property is listed as `timescaledb.max_background_workers` in human output of `database properties pg` and its details can printed with `upctl database properties pg show timescaledb.max_background_workers` command.
12
12
13
+
### Fixed
14
+
- Do not return error on valid `dhcp-default-route` values in `network create` and `network modify` commands.
fs.StringVar(&result.Family, "family", result.Address, "IP address family. Currently only IPv4 networks are supported.")
48
48
fs.StringVar(&result.Gateway, "gateway", result.Gateway, "Gateway address given by the DHCP service. Defaults to first address of the network if not given.")
49
49
fs.StringVar(&dhcp, "dhcp", dhcp, "Toggles DHCP service for the network.")
50
-
fs.StringVar(&dhcpDefRout, "dhcp-default-route", dhcpDefRout, "Defines if the gateway should be given as default route by DHCP. Defaults to yes on public networks, and no on other ones.")
50
+
fs.StringVar(&dhcpDefaultRoute, "dhcp-default-route", dhcpDefaultRoute, "Defines if the gateway should be given as default route by DHCP. Defaults to yes on public networks, and no on other ones.")
51
51
52
52
err=fs.Parse(args)
53
53
iferr!=nil {
54
54
returnnil, err
55
55
}
56
56
57
57
ifdhcp!="" {
58
-
switchdhcp {
59
-
case"true":
60
-
result.DHCP=upcloud.FromBool(true)
61
-
case"false":
62
-
result.DHCP=upcloud.FromBool(false)
63
-
default:
64
-
returnnil, fmt.Errorf("%s is an invalid value for dhcp, it can be true of false", dhcp)
58
+
val, err:=commands.BoolFromString(dhcp)
59
+
iferr!=nil {
60
+
returnnil, fmt.Errorf("could not parse dhcp value: %w", err)
0 commit comments