mirror of
https://github.com/getsops/sops.git
synced 2026-02-05 12:45:21 +01:00
Fix bad handling of kms/pgp add/rm on creations of new files
This commit is contained in:
2
setup.py
2
setup.py
@@ -9,7 +9,7 @@ with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
|
||||
setup(
|
||||
name="sops",
|
||||
py_modules=['sops'],
|
||||
version="1.0",
|
||||
version="1.1",
|
||||
author="Julien Vehent",
|
||||
author_email="jvehent@mozilla.com",
|
||||
description="Secrets OPerationS (sops) is an editor of encrypted files",
|
||||
|
||||
@@ -38,7 +38,7 @@ else:
|
||||
if sys.version_info[0] == 3:
|
||||
raw_input = input
|
||||
|
||||
VERSION = 1.0
|
||||
VERSION = 1.1
|
||||
|
||||
DESC = """
|
||||
`sops` supports AWS KMS and PGP encryption:
|
||||
@@ -190,8 +190,7 @@ def main():
|
||||
kms_arns=kms_arns,
|
||||
pgp_fps=pgp_fps)
|
||||
if not existing_file:
|
||||
if len(args.add_kms) > 0 or len(args.add_pgp) > 0 \
|
||||
or len(args.rm_kms) > 0 or len(args.rm_pgp) > 0:
|
||||
if args.add_kms or args.add_pgp or args.rm_kms or args.rm_pgp:
|
||||
panic("cannot add or remove keys on non-existent files, use "
|
||||
"`--kms` and `--pgp` instead.", error_code=49)
|
||||
# encrypt and decrypt modes are not available on non-existent files
|
||||
|
||||
Reference in New Issue
Block a user