mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 03:30:02 -03:30
Format constructed inventory hint example as valid YAML (#14568)
This commit is contained in:
@@ -302,9 +302,9 @@ function HostsByProcessorTypeExample() {
|
|||||||
|
|
||||||
const hostsByProcessorLimit = `intel_hosts`;
|
const hostsByProcessorLimit = `intel_hosts`;
|
||||||
const hostsByProcessorSourceVars = `plugin: constructed
|
const hostsByProcessorSourceVars = `plugin: constructed
|
||||||
strict: true
|
strict: true
|
||||||
groups:
|
groups:
|
||||||
intel_hosts: "GenuineIntel" in ansible_processor`;
|
intel_hosts: "'GenuineIntel' in ansible_processor"`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<FormFieldGroupExpandable
|
<FormFieldGroupExpandable
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ describe('<ConstructedInventoryHint />', () => {
|
|||||||
);
|
);
|
||||||
expect(navigator.clipboard.writeText).toHaveBeenCalledWith(
|
expect(navigator.clipboard.writeText).toHaveBeenCalledWith(
|
||||||
expect.stringContaining(
|
expect.stringContaining(
|
||||||
'intel_hosts: "GenuineIntel" in ansible_processor'
|
`intel_hosts: \"'GenuineIntel' in ansible_processor\"`
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user