You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sdap.apache.org by GitBox <gi...@apache.org> on 2021/04/08 19:21:48 UTC

[GitHub] [incubator-sdap-nexus] skorper commented on a change in pull request #125: SDAP-304 : Added optional domsconfig "create_keyspace_granted"

skorper commented on a change in pull request #125:
URL: https://github.com/apache/incubator-sdap-nexus/pull/125#discussion_r610025874



##########
File path: analysis/webservice/algorithms/doms/DomsInitialization.py
##########
@@ -47,6 +47,10 @@ def init(self, config):
         cassDatacenter = domsconfig.get("cassandra", "local_datacenter")
         cassVersion = int(domsconfig.get("cassandra", "protocol_version"))
         cassPolicy = domsconfig.get("cassandra", "dc_policy")
+        try:
+            cassCreateKeyspaceGranted = domsconfig.get("cassandra", "create_keyspace_granted")
+        except NoOptionError:

Review comment:
       @twnone This line caused errors when running my test, but seemed to work when I changed it to
   
   ```suggestion
           except configparser.NoOptionError:
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org