mirror of
https://github.com/ansible/awx.git
synced 2026-03-19 01:47:31 -02:30
Format constructed inventory hint example as valid YAML (#14568)
This commit is contained in:
@@ -304,7 +304,7 @@ function HostsByProcessorTypeExample() {
|
|||||||
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