Skip to content
Snippets Groups Projects
Commit 009e5e45 authored by Thibault VINCENT's avatar Thibault VINCENT
Browse files

fix: comments

parent cbaccb5b
No related branches found
No related tags found
No related merge requests found
......@@ -146,7 +146,7 @@ class DRBD(object):
def get_port(self):
'''
'''
return 7788 + self._minor
return 7788 + self._minor # FIXME magic number
def get_path(self):
'''
......@@ -244,7 +244,7 @@ class DRBD(object):
if rc != 0:
raise DRBDError('failed to initiate connection to remote node,'
' local port may already be in use')
# seems to be mandatory
# FIXME magic sleep seems to be mandatory
sleep(0.5)
# force sync rate
rc = Exec.silent([self.DRBDSETUP,
......@@ -302,7 +302,7 @@ class DRBD(object):
str(timeout),
'-o',
str(timeout)])
# seems to be mandatory
# FIXME magic sleep, seems to be mandatory
sleep(0.5)
try:
if rc != 0 or self.status()['conn'] != self.CSTATES.CONNECTED:
......@@ -318,7 +318,7 @@ class DRBD(object):
rc = Exec.silent([self.DRBDSETUP,
self._path,
'wait-sync'])
# seems to be mandatory
# FIXME magic sleep, seems to be mandatory
sleep(0.5)
status = self.status()
print status, self.DSTATES.UP_TO_DATE_str
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment