Merge pull request #260 from mesosphere/DCOS-1991-improve-dcos-marathon-deployment-watch

[ADD] DCOS-1991 improve dcos marathon deployment watch
This commit is contained in:
José Armando García Sancio
2015-07-14 10:58:38 -07:00

View File

@@ -904,7 +904,14 @@ def _deployment_watch(deployment_id, max_count, interval):
if deployment is None:
return 0
if util.is_windows_platform():
os.system('cls')
else:
if 'TERM' in os.environ:
os.system('clear')
emitter.publish('Deployment update time: '
'{} \n'.format(time.strftime("%Y-%m-%d %H:%M:%S",
time.gmtime())))
emitter.publish(deployment)
time.sleep(interval)
count += 1