diff --git a/ui/fixtures/cmd.mapping.json b/ui/fixtures/cmd.mapping.json index 7c80ba0..50066a5 100644 --- a/ui/fixtures/cmd.mapping.json +++ b/ui/fixtures/cmd.mapping.json @@ -11,7 +11,8 @@ { "title": "that hosts lists itself", "cmd": [ "hosts" ], - "stdout_re": ".*\tceaa4862-dd00-41ba-9787-7480ec1b2679\n" + "stdout_re": ".*\tceaa4862-dd00-41ba-9787-7480ec1b2679\n", + "stdout_nre": ".*\tceaa4862-dd00-41ba-9787-7480ec1b2679\n.*\tceaa4862-dd00-41ba-9787-7480ec1b2679\n" }, { "special": "verify store object cnt", diff --git a/ui/medashare/cli.py b/ui/medashare/cli.py index 5980a7c..ed97530 100644 --- a/ui/medashare/cli.py +++ b/ui/medashare/cli.py @@ -971,7 +971,7 @@ def cmd_hosts(options, persona, objstr, cache): hosts = objstr.get_hosts() for i in hosts: - if i is host: + if i == host: continue printhost(i)