You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2017/11/08 10:11:31 UTC
[GitHub] markusthoemmes commented on a change in pull request #2945: Be able to exclude databases by basename in replication
markusthoemmes commented on a change in pull request #2945: Be able to exclude databases by basename in replication
URL: https://github.com/apache/incubator-openwhisk/pull/2945#discussion_r149624902
##########
File path: tools/db/replicateDbs.py
##########
@@ -42,6 +43,9 @@ def replicateDatabases(args):
targetDb = couchdb.client.Server(args.targetDbUrl)
excludedDatabases = args.exclude.split(",")
+ excludedBaseNames = []
+ if args.excludeBaseName:
+ excludedBaseNames = args.excludeBaseName.split(",")
Review comment:
Could be:
```python
filter(lambda x: x != "", args.excludeBaseName.split(","))
```
Same above.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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
With regards,
Apache Git Services