Fix rollout helpers for proto linting changes
@@ -299,12 +299,12 @@ function config_mgmt_create_rollout() {
function config_mgmt_send_to_create_rollout_pretty() {
local response
- response=$(config_mgmt_send_to_create_rollout_raw)
+ response=$(config_mgmt_send_to_create_rollout_raw 2>&1)
success=$?
- if [[ $success ]]; then
+ if [[ $success == 0 ]]; then
echo "$response" | jq .
else
- echo "$response"
+ error "config_mgmt_send_to_create_rollout_raw failed: $response"
fi
return $success
}
@@ -448,8 +448,8 @@ function config_mgmt_rollout_json_static() {
"policy_revision_id": "111222333aaabbbccc",
"policy_domain_url": "https://chef-server.example/organizations/example_org",
"policy_domain_username": "bobo",
- "scm_type": "GIT",
- "scm_web_type": "GITHUB",
+ "scm_type": "SCM_TYPE_GIT",
+ "scm_web_type": "SCM_WEB_TYPE_GITHUB",
"policy_scm_url": "git@github.com:chef/automate.git",
"policy_scm_web_url": "https://github.com/chef/automate.git",
"policy_scm_commit": "1ca3deb611fa1ab5bbf28cfb55179011e16d4a3e",
