Modify

Ticket #615 (closed enhancement: fixed)

Opened 6 years ago

Last modified 4 years ago

Sudo new generation

Reported by: ejhernandez@… Owned by: juruen@…
Milestone: Component: base
Severity: normal Keywords: sudo
Cc:

Description (last modified by ejhernandez@…) (diff)

Currently EBox::Sudo::command is quite essential since it just returns the output in a list ref.

It could be a great benefit to return a hash ref with at least the following public keys:

  • retValue : the return value given by the command (Unix-like: 0 success, otherwise fail)
  • standardOutput : an array ref with the standard output, one line per element
  • standardError : an array ref with the standard error, one line per element

Attachments

Change History

comment:1 Changed 6 years ago by ejhernandez@…

  • Description modified (diff)

Formatting correctly

comment:2 Changed 6 years ago by ejhernandez@…

  • Description modified (diff)

Change to a hash ref since I'm OO-biased

comment:3 Changed 4 years ago by juruen@…

  • Status changed from new to closed
  • Resolution set to fixed

As far as I know we already do this by return an array, and raising an exception in case the command fails.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.