diff options
author | Jhon Honce <jhonce@redhat.com> | 2020-05-14 11:30:17 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2020-05-14 13:35:59 -0700 |
commit | f587fa3ba383c62690320ebc4dfbd8b9d68a73ac (patch) | |
tree | eefcf33959150d2f79d6ec431679b4dbdf46658e /pkg/domain | |
parent | 77dbfc753097d4b3a07c1382cb388e79515ffdb0 (diff) | |
download | podman-f587fa3ba383c62690320ebc4dfbd8b9d68a73ac.tar.gz podman-f587fa3ba383c62690320ebc4dfbd8b9d68a73ac.tar.bz2 podman-f587fa3ba383c62690320ebc4dfbd8b9d68a73ac.zip |
Make convenience boxed true/false easier to use
* changed PFalse to &false
* changed PTrue to &true
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/domain')
-rw-r--r-- | pkg/domain/infra/tunnel/helpers.go | 2 | ||||
-rw-r--r-- | pkg/domain/infra/tunnel/images.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/domain/infra/tunnel/helpers.go b/pkg/domain/infra/tunnel/helpers.go index 682d60d6a..09791a3b9 100644 --- a/pkg/domain/infra/tunnel/helpers.go +++ b/pkg/domain/infra/tunnel/helpers.go @@ -20,7 +20,7 @@ func getContainersByContext(contextWithConnection context.Context, all bool, nam if all && len(namesOrIds) > 0 { return nil, errors.New("cannot lookup containers and all") } - c, err := containers.List(contextWithConnection, nil, &bindings.PTrue, nil, nil, nil, &bindings.PTrue) + c, err := containers.List(contextWithConnection, nil, bindings.PTrue, nil, nil, nil, bindings.PTrue) if err != nil { return nil, err } diff --git a/pkg/domain/infra/tunnel/images.go b/pkg/domain/infra/tunnel/images.go index eb25dc4a3..5a849d362 100644 --- a/pkg/domain/infra/tunnel/images.go +++ b/pkg/domain/infra/tunnel/images.go @@ -112,7 +112,7 @@ func (ir *ImageEngine) Tag(ctx context.Context, nameOrId string, tags []string, func (ir *ImageEngine) Untag(ctx context.Context, nameOrId string, tags []string, options entities.ImageUntagOptions) error { // Remove all tags if none are provided if len(tags) == 0 { - newImage, err := images.GetImage(ir.ClientCxt, nameOrId, &bindings.PFalse) + newImage, err := images.GetImage(ir.ClientCxt, nameOrId, bindings.PFalse) if err != nil { return err } |