-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix config param valus being truncated.
It was reported that the `cb config-param set` command was truncating values that contain a `=` character. This was due to how the input line was being parsed and tokenized. Here, we've simply limited the parsing to the first instance of this character such that it will only ever split the parameter name and value from the input.
- Loading branch information
1 parent
0c8b0e5
commit b1c13b7
Showing
5 changed files
with
35 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,6 +101,18 @@ module Factory | |
CB::Model::ClusterStatus.new **params | ||
end | ||
|
||
def configuration_parameter(**params) | ||
params = { | ||
component: "postgres", | ||
name: "postgres:max_connections", | ||
parameter_name: "max_connections", | ||
requires_restart: false, | ||
value: "100", | ||
}.merge(params) | ||
|
||
CB::Model::ConfigurationParameter.new **params | ||
end | ||
|
||
def firewall_rule(**params) | ||
params = { | ||
id: "shofthj3fzaipie44lt6a5i3de", | ||
|
@@ -183,18 +195,6 @@ module Factory | |
CB::Model::Role.new **params | ||
end | ||
|
||
def configuration_parameter(**params) | ||
params = { | ||
component: "postgres", | ||
name: "postgres:max_connections", | ||
parameter_name: "max_connections", | ||
requires_restart: false, | ||
value: "100", | ||
}.merge(params) | ||
|
||
CB::Model::ConfigurationParameter.new **params | ||
end | ||
|
||
def role_user(**params) | ||
params = { | ||
account_email: "[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters