foreman_ansible 14.2.0 → 14.2.1

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: 5375afa0e07f27e4bf389fd4e2b8b2e3ca51380b206f797e73d6ddb8b39e0b1a
4
- data.tar.gz: 7e1ddc1807fd71fd95fe5ee2cc9678a3f72ccf3d87c3b4ea7e180fcc762eae71
3
+ metadata.gz: 7648a9ed44e0b236cd5bd9b81d128875f952c18f9d76756f6669b9857f86a601
4
+ data.tar.gz: 86f932aa65672a3a16f43abbafe6bc0e61209776cd12caea509c06347145ff0b
5
5
  SHA512:
6
- metadata.gz: 65019637bad7d515cc4876c0a93e165b047c8252774d53ca7beba7e89f8723948f06192b1418591ea4af5fd9fd6b58f6c0f9eb2988d64226d37d2053c44cf541
7
- data.tar.gz: a00de2265aaee7fdf823b9491e98443e4a765e593a306e81e337a9a56916dbc335e1da9898238ccba766eb08c4e27b2ed32694081203767c0a667333a1708fa5
6
+ metadata.gz: 96c7621f39c1fc2d6f9f1a45e37af9b5e8d2329eb29fceef9830e05cd097893d08e649feeb154cdcb45431ddf0d6066ea30ca1c4b72cd1abc717a6ab71ce8fe6
7
+ data.tar.gz: ff6a16b61bf8444df326130b3691eb0c8d03bad58a4ed029a0555276edaca4ae3a42b4c2d40b904ef5afea2e5547fac74a9193f9ff482a9d96ff5a3b579305e2
@@ -2,8 +2,8 @@
2
2
  <script type="text/javascript">
3
3
  $(document).ready(function () {
4
4
  var provider_type = $('#job_template_provider_type');
5
- provider_type.change(setAnsibleTabVisibilityByProvider);
6
- provider_type.change();
5
+ provider_type.trigger("change", setAnsibleTabVisibilityByProvider);
6
+ provider_type.trigger("change");
7
7
 
8
8
  function setAnsibleTabVisibilityByProvider() {
9
9
  var tab_header = $("#ansible_tab_header");
@@ -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 = '14.2.0'
7
+ VERSION = '14.2.1'
8
8
  end
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { isEqual } from 'lodash';
2
3
  import { TimesIcon, CheckIcon } from '@patternfly/react-icons';
3
4
  import { sprintf, translate as __ } from 'foremanReact/common/I18n';
4
5
 
@@ -48,7 +49,7 @@ export const onCompleted = onSubmitSuccess => response => {
48
49
  message: formatError(joinErrors(errors)),
49
50
  });
50
51
  } else {
51
- onSubmitSuccess(overridenAnsibleVariable.currentValue.value);
52
+ onSubmitSuccess(overridenAnsibleVariable.defaultValue);
52
53
  showToast({
53
54
  type: 'success',
54
55
  message: __('Ansible variable override was successfully deleted.'),
@@ -59,7 +60,7 @@ export const onCompleted = onSubmitSuccess => response => {
59
60
  export const findOverride = (variable, hostname) =>
60
61
  variable.lookupValues.nodes.find(
61
62
  item =>
62
- item.value === variable.currentValue.value &&
63
+ isEqual(item.value, variable.currentValue.value) &&
63
64
  item.match === `fqdn=${hostname}`
64
65
  );
65
66
 
@@ -309,6 +309,7 @@ export const deleteMocks = [
309
309
  overridenAnsibleVariable: {
310
310
  __typename: 'OverridenAnsibleVariable',
311
311
  id: ansibleVariableId,
312
+ defaultValue: 101,
312
313
  currentValue: {
313
314
  __typename: 'AnsibleVariableOverride',
314
315
  element: 'os',
@@ -3,6 +3,7 @@ mutation DeleteAnsibleVariableOverride($id: ID!, $hostId: Int!, $variableId: Int
3
3
  id
4
4
  overridenAnsibleVariable {
5
5
  id
6
+ defaultValue
6
7
  currentValue {
7
8
  value
8
9
  element
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: 14.2.0
4
+ version: 14.2.1
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: 2024-08-01 00:00:00.000000000 Z
11
+ date: 2024-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts_as_list
@@ -496,7 +496,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
496
496
  - !ruby/object:Gem::Version
497
497
  version: '0'
498
498
  requirements: []
499
- rubygems_version: 3.2.33
499
+ rubygems_version: 3.2.3
500
500
  signing_key:
501
501
  specification_version: 4
502
502
  summary: Ansible integration with Foreman (theforeman.org)