From 17453c9b8c4639ba1185f3ee0a01a68bcb64be14 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Tue, 13 Sep 2022 23:11:15 -0700 Subject: [PATCH] w/ sqlite3 objects aren't exactly the same, use == instead --- ui/fixtures/cmd.mapping.json | 3 ++- ui/medashare/cli.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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)