Bug 1484056 - Spacecmd command configchannel_updatefile in non-interactive mode is not non-interactive
Summary: Spacecmd command configchannel_updatefile in non-interactive mode is not non-...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 580
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomáš Kašpárek
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat58-nth sat5-cfu
TreeView+ depends on / blocked
 
Reported: 2017-08-22 14:42 UTC by Ondrej Gajdusek
Modified: 2018-06-01 13:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-01 13:13:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.