mesos: update slave terminology to agent (#973)

This commit is contained in:
tamarrow 2017-04-24 11:06:39 -07:00 committed by GitHub
parent 5bc35bfa8d
commit f1a6f1d2c1
2 changed files with 3 additions and 3 deletions

View File

@ -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):

View File

@ -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: