Fix up the return value of launch()
This is "obviously" the right thing to do, except of course it's pure sugar: the return value is not used anywhere. Except if someone has a script that imports the whole thing somehow and then does isinstance(dict). Because that is so much easier than submitting a patch, I can imagine someone, somewhere doing that. The fix came in a patch by dfg, see review 121851. Change-Id: I39ddf70dc2d027b7db6e31097400248dc66eb137
This commit is contained in:
parent
5a4c21053a
commit
2ce6341b52
@ -624,7 +624,7 @@ class Server(object):
|
||||
"""
|
||||
conf_files = self.conf_files(**kwargs)
|
||||
if not conf_files:
|
||||
return []
|
||||
return {}
|
||||
|
||||
pids = self.get_running_pids(**kwargs)
|
||||
|
||||
@ -644,7 +644,7 @@ class Server(object):
|
||||
|
||||
if already_started:
|
||||
print _("%s already started...") % self.server
|
||||
return []
|
||||
return {}
|
||||
|
||||
if self.server not in START_ONCE_SERVERS:
|
||||
kwargs['once'] = False
|
||||
|
@ -1476,6 +1476,7 @@ class TestManager(unittest.TestCase):
|
||||
|
||||
def launch(self, **kwargs):
|
||||
self.called['launch'].append(kwargs)
|
||||
return {}
|
||||
|
||||
def wait(self, **kwargs):
|
||||
self.called['wait'].append(kwargs)
|
||||
@ -1538,6 +1539,7 @@ class TestManager(unittest.TestCase):
|
||||
|
||||
def launch(self, **kwargs):
|
||||
self.called['launch'].append(kwargs)
|
||||
return {}
|
||||
|
||||
def wait(self, **kwargs):
|
||||
self.called['wait'].append(kwargs)
|
||||
@ -1589,6 +1591,7 @@ class TestManager(unittest.TestCase):
|
||||
|
||||
def launch(self, **kwargs):
|
||||
self.called['launch'].append(kwargs)
|
||||
return {}
|
||||
|
||||
def interact(self, **kwargs):
|
||||
self.called['interact'].append(kwargs)
|
||||
@ -1630,7 +1633,8 @@ class TestManager(unittest.TestCase):
|
||||
return 0
|
||||
|
||||
def launch(self, **kwargs):
|
||||
return self.called['launch'].append(kwargs)
|
||||
self.called['launch'].append(kwargs)
|
||||
return {}
|
||||
|
||||
orig_swift_server = manager.Server
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user