1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Remove botocore dependency from credstash script (#22511)

* Remove botocore dependency from credstash script

* Update requirements_all.txt

* Update pylintrc

* Update credstash.py
This commit is contained in:
Jason Hu
2019-03-28 14:37:44 -07:00
committed by Robbie Trencheny
parent 8874422e8a
commit 821a90fa54
3 changed files with 3 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ import getpass
from homeassistant.util.yaml import _SECRET_NAMESPACE
REQUIREMENTS = ['credstash==1.15.0', 'botocore==1.7.34']
REQUIREMENTS = ['credstash==1.15.0']
def run(args):
@@ -24,16 +24,15 @@ def run(args):
'value', help="The value to save when putting a secret",
nargs='?', default=None)
# pylint: disable=import-error, no-member
# pylint: disable=no-member
import credstash
import botocore
args = parser.parse_args(args)
table = _SECRET_NAMESPACE
try:
credstash.listSecrets(table=table)
except botocore.errorfactory.ClientError:
except Exception: # pylint: disable=broad-except
credstash.createDdbTable(table=table)
if args.action == 'list':