Skip to content

Commit

Permalink
Fix CLI sources list output
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Oct 16, 2013
1 parent 55d2b4e commit 380c14c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ckanext/harvest/commands/harvester.py
Expand Up @@ -314,9 +314,8 @@ def print_harvest_sources(self, sources):
def print_harvest_source(self, source):
print 'Source id: %s' % source.get('id')
print ' url: %s' % source.get('url')
print ' type: %s' % source.get('source_type')
print ' active: %s' % (source.get('active') if 'active' in source else source.get('state') == 'active')
print 'owner org: %s' % source.get('owner_org')
print ' type: %s' % source.get('type')
print ' active: %s' % (source.get('active', source.get('state') == 'active'))
print 'frequency: %s' % source.get('frequency')
print ' jobs: %s' % source.get('status').get('job_count')
print ''
Expand Down

0 comments on commit 380c14c

Please sign in to comment.