foreman_templates 10.0.7 → 10.0.8
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 166b732711f88c94f1ade051a89ef5268fc2ca20328c2199170fe76b1267f812
|
4
|
+
data.tar.gz: 645119467d5ba060bccbeb7c85f968aefa371199e62af5a3a706385cbaaeea7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfeca774f2f8d16fb84f4c6376bd16bd8c79722c9a413ff85afcd76b2172bd03211492b0da994843561df27b934014b83b5666a79c501939282917126b86b4b6
|
7
|
+
data.tar.gz: 4f4206d09b3fc367c1175dce58abbbcf3358206f117f5abe3b55b32c8641b9dc805d0875fc00df3b5223e3701746bce44deeebf1b78ceeafa389cc26e5510ad0
|
@@ -30,7 +30,7 @@ const ProxySettingsFields = ({
|
|
30
30
|
<FormikField
|
31
31
|
name={proxyPolicyFieldName}
|
32
32
|
render={({ field, form }) => {
|
33
|
-
if (form.values[syncType]?.repo
|
33
|
+
if (isHttpUrl(form.values[syncType]?.repo))
|
34
34
|
return (
|
35
35
|
<ProxySettingField
|
36
36
|
setting={proxyPolicySetting}
|
@@ -47,6 +47,7 @@ const ProxySettingsFields = ({
|
|
47
47
|
name={proxyIdFieldName}
|
48
48
|
render={({ field, form }) => {
|
49
49
|
if (
|
50
|
+
isHttpUrl(form.values[syncType]?.repo) &&
|
50
51
|
proxyIdSetting.value !== '' &&
|
51
52
|
// Changing name to camel case here would unnecessarily complicate the code
|
52
53
|
// eslint-disable-next-line camelcase
|
@@ -69,6 +70,8 @@ const ProxySettingsFields = ({
|
|
69
70
|
);
|
70
71
|
};
|
71
72
|
|
73
|
+
const isHttpUrl = value => value && /^(https?:\/\/)/.test(value);
|
74
|
+
|
72
75
|
ProxySettingsFields.propTypes = {
|
73
76
|
proxyPolicySetting: PropTypes.object,
|
74
77
|
proxyIdSetting: PropTypes.object,
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_templates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.0.
|
4
|
+
version: 10.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Sutcliffe
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-04-09 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: diffy
|