Skip to content

Commit

Permalink
redshift if cache is empty, query (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
kapilt committed May 3, 2016
1 parent e854663 commit f7e093a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion c7n/resources/redshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def resources(self):
if self._cache.load():
dbs = self._cache.get(
{'region': self.config.region, 'resource': 'redshift'})
return self.filter_resources(dbs)
if dbs is not None:
return self.filter_resources(dbs)
self.log.info('Querying redshift dbs')
p = c.get_paginator('describe_clusters')
results = p.paginate()
Expand Down

0 comments on commit f7e093a

Please sign in to comment.