foreman_ansible 7.1.7 → 7.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a0b2af5e13da65436d688980d1020f155f9aa0fadc8ee93d7b3e2bb19204f56
4
- data.tar.gz: a976fa8faff35f598f090d0ea7af5571530257af056ddea7c1cf976224de4d76
3
+ metadata.gz: 7e7ff6676073d880f0e1104159ece7cf319117e0137add3d039165d0050c7841
4
+ data.tar.gz: 548ccdf064118379d4de2dd463ee4596fa2cc95bab13349ae3a0dcb733d611fa
5
5
  SHA512:
6
- metadata.gz: acf98eef2a94022be624de1c1dda77c6ab46152869ee6bd7f2874e0fe7aa753bf54a540473bb96b671625725c173fe5d7fa9b5177ca4614ee53f2a9a269612dc
7
- data.tar.gz: e9c74a8a50797eed27dd5c5ad5b22edc5cf0e2c4635a6ea9cea43acbfff6f7978341f44a9acd002c18cf8406b9efe88f6b6311d693d03c773223335cfebe39be
6
+ metadata.gz: 4d820c8d1184bf52c7acde87d2b0cc64d06b61330ec562b181949deb69b861e3bcc32295d6319d6f8c77d2226b82cd2370d078fa7a9820f7a75dafefd022b5fa
7
+ data.tar.gz: d7d1b851ee5c4f72f331cfcb4af9430c8c0ba126572d8076ca7d16041ece7d241551b68fd1ad7f96a9c0fd8fbafc353c3d71b61e96f6327de3fe748a77b4705c
@@ -4,5 +4,5 @@
4
4
  # This way other parts of Foreman can just call ForemanAnsible::VERSION
5
5
  # and detect what version the plugin is running.
6
6
  module ForemanAnsible
7
- VERSION = '7.1.7'
7
+ VERSION = '7.1.8'
8
8
  end
@@ -4,8 +4,13 @@ import { sprintf, translate as __ } from 'foremanReact/common/I18n';
4
4
 
5
5
  import { showToast } from '../../../../toastHelper';
6
6
 
7
- const formatSourceLink = currentValue =>
8
- `${__(currentValue.element)}: ${currentValue.elementName}`;
7
+ function formatSourceLink(currentValue) {
8
+ const element =
9
+ typeof currentValue.element !== 'string'
10
+ ? currentValue.element.toString()
11
+ : currentValue.element;
12
+ return `${__(element)}: ${currentValue.elementName}`;
13
+ }
9
14
 
10
15
  export const formatSourceAttr = variable =>
11
16
  variable.currentValue
@@ -19,7 +19,7 @@ import {
19
19
  const TestComponent = withRedux(withMockedProvider(AnsibleVariableOverrides));
20
20
 
21
21
  describe('AnsibleVariableOverrides', () => {
22
- it('should show skeleton when page is loading', () => {
22
+ it('should show skeleton when page is loading', async () => {
23
23
  const { container } = render(
24
24
  <TestComponent
25
25
  hostId={hostId}
@@ -31,6 +31,8 @@ describe('AnsibleVariableOverrides', () => {
31
31
  expect(
32
32
  container.getElementsByClassName('react-loading-skeleton')
33
33
  ).toHaveLength(5);
34
+
35
+ await waitFor(tick);
34
36
  });
35
37
  it('should load', async () => {
36
38
  render(
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.7
4
+ version: 7.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-04 00:00:00.000000000 Z
11
+ date: 2023-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts_as_list