Format constructed inventory hint example as valid YAML (#14568)

This commit is contained in:
Marliana Lara
2023-10-20 10:24:47 -04:00
committed by GitHub
parent 1081f2d8e9
commit 95bfedad5b
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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\"`
) )
); );
}); });