| Summary: | Smart Variables allow to set array/hash-specific flags to other types | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Stanislav Tkachenko <stkachen> |
| Component: | Smart Variables | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED ERRATA | QA Contact: | Katello QA List <katello-qa-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.2.0 | CC: | bbuckingham, jcallaha, orabin |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-02-21 16:44:23 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Stanislav Tkachenko
2016-09-13 15:29:54 UTC
(In reply to Stanislav Tkachenko from comment #0) Update: Environment info: > OS: redhat > RELEASE: Red Hat Enterprise Linux Server release 7.2 (Maipo) > FOREMAN: 1.11.0.53 > RUBY: ruby 2.0.0p598 (2014-11-13) [x86_64-linux] > PUPPET: 3.8.6 > DENIALS: 0 Verified on Satellite 6.3 Snap 6.0: API: > Making HTTP POST request to https://sat6.com/api/v2/smart_variables with options {'verify': False, 'auth': ('admin', 'changeme'), 'headers': {'content-type': 'application/json'}} and data {"default_value": "50", "variable": "test", "variable_type": "string", "puppetclass_id": 33}. > Received HTTP 201 response: > Making HTTP PUT request to https://sat6.com/api/v2/smart_variables/23 with options {'verify': False, 'auth': ('admin', 'changeme'), 'headers': {'content-type': 'application/json'}} and data {"merge_overrides": true}. > Received HTTP 500 response: { "error": {"message":"Validation failed: Merge overrides can only be set for array or hash"} CLI: > hammer -v -u admin -p changeme --output=csv smart-variable create --default-value="0159814391" --variable="m6uIkGBnvN" --puppet-class="cli_test_variables" --variable-type="integer" > hammer -v -u admin -p changeme --output=csv smart-variable update --variable="m6uIkGBnvN" --merge-default="1" --merge-overrides="1" > [ERROR 2016-11-28 10:32:40 API] 500 Internal Server Error > [ERROR 2016-11-28 10:32:40 Exception] Validation failed: Merge overrides can only be set for array or hash > Could not update the smart variable: > Validation failed: Merge overrides can only be set for array or hash Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:0336 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:0336 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:0336 |