Skip to content

Commit

Permalink
Fix some linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
arbulu89 committed Jun 4, 2019
1 parent c853673 commit bff2aa5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
22 changes: 11 additions & 11 deletions salt/modules/drbd.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def _add_peernode(line):

peernode = {}
peernode["peernode name"] = fields[0]
#Could be role or connection:
# Could be role or connection:
peernode[fields[1].split(":")[0]] = fields[1].split(":")[1]
peernode["peer volumes"] = []

Expand Down Expand Up @@ -349,16 +349,16 @@ def status(name='all'):

cmd = 'drbdadm status {}'.format(name)

#One possible output: (number of resource/node/vol are flexible)
#resource role:Secondary
# volume:0 disk:Inconsistent
# volume:1 disk:Inconsistent
# drbd-node1 role:Primary
# volume:0 replication:SyncTarget peer-disk:UpToDate done:10.17
# volume:1 replication:SyncTarget peer-disk:UpToDate done:74.08
# drbd-node2 role:Secondary
# volume:0 peer-disk:Inconsistent resync-suspended:peer
# volume:1 peer-disk:Inconsistent resync-suspended:peer
# One possible output: (number of resource/node/vol are flexible)
# resource role:Secondary
# volume:0 disk:Inconsistent
# volume:1 disk:Inconsistent
# drbd-node1 role:Primary
# volume:0 replication:SyncTarget peer-disk:UpToDate done:10.17
# volume:1 replication:SyncTarget peer-disk:UpToDate done:74.08
# drbd-node2 role:Secondary
# volume:0 peer-disk:Inconsistent resync-suspended:peer
# volume:1 peer-disk:Inconsistent resync-suspended:peer

result = __salt__['cmd.run_all'](cmd)
if result['retcode'] != 0:
Expand Down
2 changes: 1 addition & 1 deletion salt/states/drbd.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
'''
from __future__ import absolute_import, print_function, unicode_literals
import logging
import time

from salt.exceptions import CommandExecutionError
from salt.ext import six
import time

LOGGER = logging.getLogger(__name__)

Expand Down
4 changes: 2 additions & 2 deletions salt/states/hanamod.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
__virtualname__ = 'hana'

TMP_CONFIG_FILE = '/tmp/hana.conf'
INI_PARAM_PRELOAD_CS = {'section_name':'system_replication', 'parameter_name':'preload_column_tables'}
INI_PARAM_GAL = {'section_name':'memorymanager', 'parameter_name':'global_allocation_limit'}
INI_PARAM_PRELOAD_CS = {'section_name': 'system_replication', 'parameter_name': 'preload_column_tables'}
INI_PARAM_GAL = {'section_name': 'memorymanager', 'parameter_name': 'global_allocation_limit'}


def __virtual__(): # pragma: no cover
Expand Down

0 comments on commit bff2aa5

Please sign in to comment.