Skip to content

Commit

Permalink
Release of version 1.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
liuszeng committed Apr 16, 2019
1 parent 3ec8364 commit bdc113b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AWSIoTPythonSDK/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "1.4.4"
__version__ = "1.4.5"


4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
CHANGELOG
=========

1.4.5
=====
* improvement: Added validation to mTLS arguments in basicDiscovery

1.4.3
=====
* bugfix: [Issue #150](https://github.com/aws/aws-iot-device-sdk-python/issues/150)Fix for ALPN in Python 3.7
Expand Down
14 changes: 13 additions & 1 deletion samples/greengrass/basicDiscovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,21 @@ def customOnMessage(message):
exit(2)

if not args.certificatePath or not args.privateKeyPath:
parser.error("Missing credentials for authentication.")
parser.error("Missing credentials for authentication, you must specify --cert and --key args.")
exit(2)

if not os.path.isfile(rootCAPath):
parser.error("Root CA path does not exist {}".format(rootCAPath))
exit(3)

if not os.path.isfile(certificatePath):
parser.error("No certificate found at {}".format(certificatePath))
exit(3)

if not os.path.isfile(privateKeyPath):
parser.error("No private key found at {}".format(privateKeyPath))
exit(3)

# Configure logging
logger = logging.getLogger("AWSIoTPythonSDK.core")
logger.setLevel(logging.DEBUG)
Expand Down

0 comments on commit bdc113b

Please sign in to comment.