Skip to content

Commit

Permalink
Make pylint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
fennm committed Jun 29, 2013
1 parent ab62481 commit 8f4a8d3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/sbin/bcfg2-info
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,11 @@ Bcfg2 client itself.""")
for entry in struct:
if entry.tag == 'Path':
entry.set('name', odir + '/' + entry.get('name'))
if entry.get('mode') != None:
entry.set('mode', \
oct(int(entry.get('mode'), 8)|stat.S_IWUSR))
if entry.get('mode') is not None:
entry.set(
'mode',
oct(int(entry.get('mode'), 8) | stat.S_IWUSR)
)

posix = Bcfg2.Client.Tools.POSIX.POSIX(MockLog(),
self.setup,
Expand Down

0 comments on commit 8f4a8d3

Please sign in to comment.