Remove compress variable

No reason to carry this temporary variable for documentation purposes.
If in the future we find that it is necessary to add a CLI option, we
can add the variable then.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh 2017-08-27 11:10:32 +00:00
parent 865612c3db
commit e48f7a3491

View file

@ -76,8 +76,6 @@ func pushCmd(c *cli.Context) error {
skipVerify := !c.BoolT("tls-verify")
removeSignatures := c.Bool("remove-signatures")
signBy := c.String("sign-by")
// Leave this here in case we want to add a compression option in the future
compress := archive.Uncompressed
if registryCredsString != "" {
creds, err := common.ParseRegistryCreds(registryCredsString)
@ -106,7 +104,7 @@ func pushCmd(c *cli.Context) error {
}
options := libkpodimage.CopyOptions{
Compression: compress,
Compression: archive.Uncompressed,
SignaturePolicyPath: signaturePolicy,
Store: store,
DockerRegistryOptions: common.DockerRegistryOptions{