This is an automated email from the ASF dual-hosted git repository.
rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk.git
The following commit(s) were added to refs/heads/master by this push:
new 63a5498 Python 3 conditioning for wskadmin. (#5013)
63a5498 is described below
commit 63a5498f13d2a84c6d49d72e8b790104ac62041b
Author: rodric rabbah <[email protected]>
AuthorDate: Wed Oct 28 23:14:11 2020 -0400
Python 3 conditioning for wskadmin. (#5013)
---
tools/admin/wskprop.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/admin/wskprop.py b/tools/admin/wskprop.py
index 8e9ef3f..3b1bd94 100644
--- a/tools/admin/wskprop.py
+++ b/tools/admin/wskprop.py
@@ -77,6 +77,6 @@ def checkRequiredProperties(requiredPropertiesByName,
properties):
def getPropertyValue(key, properties):
evalue = os.environ.get(key)
- value = (evalue if evalue is not None and evalue is not ''
+ value = (evalue if evalue != None and evalue != ''
else properties[key] if key in properties else None)
return value