hammer_cli_foreman 3.14.0 → 3.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/doc/release_notes.md +6 -0
- data/lib/hammer_cli_foreman/exception_handler.rb +5 -2
- data/lib/hammer_cli_foreman/version.rb +1 -1
- data/locale/ca/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/cs_CZ/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/de/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/en/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/en_GB/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/es/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/fr/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/it/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ja/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ka/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ko/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/pt_BR/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ru/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/zh_CN/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/zh_TW/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/test/data/3.15/foreman_api.json +1 -0
- data/test/test_helper.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4080ad3a471b47ea68f872665fca82acc64f2288483fa77d487026c9765eea6
|
4
|
+
data.tar.gz: c57ca48ff2872564c096cea2083cf233cdc862d65b19f7202cb0e20da48845d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 444c1c313da816ecffc0e4d6c45d07977cc855168830cdb1393dba2b0d4cf135353a25acf955f0cfec172d069087ed9c1c08f0153db630d33cf9f7dd68589079
|
7
|
+
data.tar.gz: 41dc813d04ca7ad2090c220701371b701bde0be770b8e464417fad8226856a70cbb5f22508d44a836fcb38603197348f3fec3a670a204cfa983adde3c12525a5
|
data/doc/release_notes.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
Release notes
|
2
2
|
=============
|
3
|
+
### 3.15.0 (2025-05-14)
|
4
|
+
* Use 3.15 test data
|
5
|
+
* Fix hammer insights inventory sync error message ([PR #640](https://github.com/theforeman/hammer-cli-foreman/pull/640)), [#38401](http://projects.theforeman.org/issues/38401)
|
6
|
+
* Fix hammer host update error messages, [#38291](http://projects.theforeman.org/issues/38291)
|
7
|
+
* Bump to 3.15.0-develop
|
8
|
+
|
3
9
|
### 3.14.0 (2025-02-20)
|
4
10
|
* Invalidate tokens for specific user/users ([PR #636](https://github.com/theforeman/hammer-cli-foreman/pull/636)), [#38124](http://projects.theforeman.org/issues/38124)
|
5
11
|
* Don't build hidden params as options ([PR #634](https://github.com/theforeman/hammer-cli-foreman/pull/634)), [#38077](http://projects.theforeman.org/issues/38077)
|
@@ -98,9 +98,11 @@ module HammerCLIForeman
|
|
98
98
|
begin
|
99
99
|
response = JSON.parse(e.response)
|
100
100
|
response = HammerCLIForeman.record_to_common_format(response) unless response.has_key?('message')
|
101
|
-
message = response[
|
101
|
+
message = response["displayMessage"] || response["full_messages"] || response["message"]
|
102
102
|
rescue JSON::ParserError
|
103
103
|
message = e.message
|
104
|
+
ensure
|
105
|
+
message ||= e.message
|
104
106
|
end
|
105
107
|
|
106
108
|
print_error message
|
@@ -168,7 +170,8 @@ module HammerCLIForeman
|
|
168
170
|
end
|
169
171
|
|
170
172
|
def response_message(response)
|
171
|
-
|
173
|
+
result = JSON.parse(response)
|
174
|
+
message = result.dig("error", "message") || result.dig("message")
|
172
175
|
"\n #{message}"
|
173
176
|
rescue JSON::ParserError
|
174
177
|
''
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|