Browse Source

w/ sqlite3 objects aren't exactly the same, use == instead

main
John-Mark Gurney 2 years ago
parent
commit
17453c9b8c
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      ui/fixtures/cmd.mapping.json
  2. +1
    -1
      ui/medashare/cli.py

+ 2
- 1
ui/fixtures/cmd.mapping.json View File

@@ -11,7 +11,8 @@
{ {
"title": "that hosts lists itself", "title": "that hosts lists itself",
"cmd": [ "hosts" ], "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", "special": "verify store object cnt",


+ 1
- 1
ui/medashare/cli.py View File

@@ -971,7 +971,7 @@ def cmd_hosts(options, persona, objstr, cache):
hosts = objstr.get_hosts() hosts = objstr.get_hosts()


for i in hosts: for i in hosts:
if i is host:
if i == host:
continue continue


printhost(i) printhost(i)


Loading…
Cancel
Save