Backtick in password causes failure during deployment of virt-who config.

Solution Verified - Updated -

Issue

During deployment of a virt-who config, if the password contains a backtick, the script and hammer virt-who-config deploy ... fail.

  • Error message when using the hammer command:
/tmp/virt_who20210507-1272-1n4wcfx: line 102: unexpected EOF while looking for matching `''
/tmp/virt_who20210507-1272-1n4wcfx: line 108: syntax error: unexpected end of file
  • Error message when using the script:
./myvirtwho: line 55: unexpected EOF while looking for matching ``'
./myvirtwho: line 108: syntax error: unexpected end of file

Environment

Red Hat Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content