SUSE Support

Here When You Need Us

AutoYaST profiles including bash scripts with variables report syntax errors in SUSE Manager WebUI

This document (7023351) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Manager 3.2
SUSE Manager 3.1
SUSE Manager 3

Situation

When adding script sections containing "$" into AutoYaST profiles in SUSE Manager, the WebUI reports an Syntax error. Checking /var/log/cobbler/cobbler.log the following message is shown:

# *** ERROR ***
#
# There is a templating error preventing this file from rendering correctly.
#
# This is most likely not due to a bug in Cobbler and is something you can fix.
#
# Look at the message below to see what things are causing problems.
#
# (1) Does the template file reference a $variable that is not defined?
# (2) is there a formatting error in a Cheetah directive?
# (3) Should dollar signs ($) be escaped that are not being escaped?
#
# Try fixing the problem and then investigate to see if this message goes
# away or changes.
#
#
# invalid syntax (<string>, line 1)
#   File "/usr/lib/python2.7/site-packages/cobbler/templar.py", line 208, in render_cheetah
#     data_out = t.respond()
#
#   File "cheetah_DynamicallyCompiledCheetahTemplate_1536048469_25_59941.py", line 407, in respond
#
#   File "cheetah_DynamicallyCompiledCheetahTemplate_1536048469_25_59941.py", line 70, in __errorCatcher1
#

[...]

Resolution

Escape the "$" with a single backslash ("\"). This will enable cobbler to render the AutoYaST profile.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7023351
  • Creation Date: 14-Sep-2018
  • Modified Date:03-Mar-2020
    • SUSE Manager

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.