mesos: update slave terminology to agent (#973)
This commit is contained in:
parent
5bc35bfa8d
commit
f1a6f1d2c1
|
@ -493,7 +493,7 @@ def _list(json_, extra_field_names):
|
|||
if output:
|
||||
emitter.publish(output)
|
||||
else:
|
||||
emitter.publish(errors.DefaultError('No slaves found.'))
|
||||
emitter.publish(errors.DefaultError('No agents found.'))
|
||||
|
||||
|
||||
def _log(follow, lines, leader, slave, component, filters):
|
||||
|
|
|
@ -351,7 +351,7 @@ class Master(object):
|
|||
slaves = self.slaves(fltr)
|
||||
|
||||
if len(slaves) == 0:
|
||||
raise DCOSException('No slave found with ID "{}".'.format(fltr))
|
||||
raise DCOSException('No agent found with ID "{}".'.format(fltr))
|
||||
|
||||
elif len(slaves) > 1:
|
||||
|
||||
|
@ -362,7 +362,7 @@ class Master(object):
|
|||
else:
|
||||
matches = ['\t{0}'.format(s['id']) for s in slaves]
|
||||
raise DCOSException(
|
||||
"There are multiple slaves with that ID. " +
|
||||
"There are multiple agents with that ID. " +
|
||||
"Please choose one:\n{}".format('\n'.join(matches)))
|
||||
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue