Skip to content

Conversation

@acefei
Copy link
Contributor

@acefei acefei commented Dec 15, 2023

  • format with 2to3
  • In Python 2, it was possible to compare strings without using quotes, but python3 not
  • fix invalid logout function

Tested manually on host

Signed-off-by: Fei Su <fei.su@cloud.com>
except:
if "default_template" not in tmplrec["other_config"] or tmplrec["other_config"]["default_template"] != 'true':
output.append(tmplrec["uuid"])
except KeyError:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be replaced by
with contextlib.suppress(KeyError)

@liulinC liulinC merged commit 122e9d9 into xapi-project:master Dec 21, 2023
@acefei acefei deleted the private/feis/print-custom-templates branch May 15, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants