libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [3/5] git commit: Don't include local storage provider in the supported providers table.
Date Sat, 07 Dec 2013 14:56:18 GMT
Don't include local storage provider in the supported providers table.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/dae43045
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/dae43045
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/dae43045

Branch: refs/heads/trunk
Commit: dae43045540555635d4acae784fad08a3c43a052
Parents: d39b43d
Author: Tomaz Muraus <tomaz@apache.org>
Authored: Sat Dec 7 15:51:24 2013 +0100
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Sat Dec 7 15:51:24 2013 +0100

----------------------------------------------------------------------
 contrib/generate_provider_feature_matrix_table.py | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/dae43045/contrib/generate_provider_feature_matrix_table.py
----------------------------------------------------------------------
diff --git a/contrib/generate_provider_feature_matrix_table.py b/contrib/generate_provider_feature_matrix_table.py
index dd8f569..f2c73bf 100755
--- a/contrib/generate_provider_feature_matrix_table.py
+++ b/contrib/generate_provider_feature_matrix_table.py
@@ -123,6 +123,11 @@ FRIENDLY_METHODS_NAMES = {
     },
 }
 
+IGNORED_PROVIDERS = [
+    'dummy',
+    'local'
+]
+
 
 def get_provider_api_names(Provider):
     names = [key for key, value in Provider.__dict__.items() if
@@ -168,6 +173,9 @@ def generate_providers_table(api):
             # Deprecated providers throw an exception
             continue
 
+        if name.lower() in IGNORED_PROVIDERS:
+            continue
+
         driver_methods = dict(inspect.getmembers(cls,
                                                  predicate=inspect.ismethod))
         base_methods = dict(inspect.getmembers(driver,
@@ -216,9 +224,6 @@ def generate_supported_methods_table(api, provider_matrix):
     data.append(['Provider'] + header)
 
     for provider, values in sorted(provider_matrix.items()):
-        if 'dummy' in provider.lower():
-            continue
-
         provider_name = '`%s`_' % (values['name'])
         row = [provider_name]
 
@@ -260,9 +265,6 @@ def generate_supported_providers_table(api, provider_matrix):
 
     data.append(header)
     for provider, values in sorted(provider_matrix.items()):
-        if 'dummy' in provider.lower():
-            continue
-
         name_str = '`%s`_' % (values['name'])
         module_str = ':mod:`%s`' % (values['module'])
         class_str = ':class:`%s`' % (values['class'])


Mime
View raw message