ps: now works with --size and nonroot

Revert the error check from #2832. This is not strictly
necessary, since 'podman ps --size' now works perfectly
fine in nonroot because some recent change (Giuseppe's,
presumably) masked os.Geteuid() return 0... but removing
for maintainability's sake.

Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
Ed Santiago 2019-04-09 12:55:19 -06:00
parent fe79bdd07e
commit cebb7ebbee
1 changed files with 0 additions and 4 deletions

View File

@ -205,10 +205,6 @@ func psCmd(c *cliconfig.PsValues) error {
span, _ := opentracing.StartSpanFromContext(Ctx, "psCmd")
defer span.Finish()
}
// TODO disable when single rootless userns merges
if c.Bool("size") && os.Geteuid() != 0 {
return errors.New("the --size option is not presently supported without root")
}
var watch bool