Skip to content

Commit

Permalink
Simplify attribs list with list comprehension
Browse files Browse the repository at this point in the history
  • Loading branch information
kev009 committed Jun 2, 2015
1 parent 1036764 commit b009763
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions salt/grains/disks.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ class _camconsts:
SECTOR_SIZE = 'sector size'
MEDIA_RPM = 'media RPM'


_identify_attribs = {key: _camconsts.__dict__[key] for key in
_camconsts.__dict__ if not key.startswith('__')}.values()
_identify_attribs = [_camconsts.__dict__[key] for key in
_camconsts.__dict__ if not key.startswith('__')]


def _freebsd_disks():
Expand Down

0 comments on commit b009763

Please sign in to comment.