Bug 2210250

Summary: commented lines are removed after saving cloud-init userdata scripts
Product: Container Native Virtualization (CNV) Reporter: nijin ashok <nashok>
Component: User ExperienceAssignee: Tal Nisan <tnisan>
Status: CLOSED WONTFIX QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.13.0CC: hstastna
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-03 13:24:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description nijin ashok 2023-05-26 09:30:33 UTC
Description of problem:

From the console, while creating VM using the template, customize virtual machine => scripts => Edit cloudinit => Click checkbox script => Add anything that starts with "#". After save and apply, check for the contents again, the commented lines will be removed.
 

Version-Release number of selected component (if applicable):

OpenShift Virtualization   4.13.0

How reproducible:

100%

Steps to Reproduce:

Please refer above.


Actual results:

commented lines are removed after saving cloud-init user data scripts

Expected results:

It shouldn't be removed.

Additional info: