Bug 1484056

Summary: Spacecmd command configchannel_updatefile in non-interactive mode is not non-interactive
Product: Red Hat Satellite 5 Reporter: Ondrej Gajdusek <ogajduse>
Component: ServerAssignee: Tomáš Kašpárek <tkasparek>
Status: CLOSED WONTFIX QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 580CC: rdrazny, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-01 13:13:31 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:
Bug Depends On:    
Bug Blocks: 1450940, 1582457    

Description Ondrej Gajdusek 2017-08-22 14:42:05 UTC
Description of problem:
configchannel_updatefile command executed from non-interactive mode still requires user input. As described in man spacecmd:  -y, --yes = answer yes for all questions. In the current state, this command is not usable for example in cron script.

Version-Release number of selected component (if applicable):
spacecmd-2.5.0-14.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. spacecmd -y configchannel_updatefile config_channel_label /etc/file_path

Actual results:
configchannel_updatefile asks for confirmation about symlink, directory, owner, group, mode and SELinux Context.

Expected results:
configchannel_updatefile shouldn't require any additional input from the user.

Additional info:
There is an email about it on spacewalk-list: https://www.redhat.com/archives/spacewalk-list/2017-August/msg00030.html

Comment 1 Tomáš Kašpárek 2018-02-28 08:03:46 UTC
spacewalk.git(master): e3a50a31e587d128eaf0397cee50d91e8f655c1a
9e39f0b8f2163a414d6a68dd9948781996008d6a