Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Howto: I want to get aplain list with all domain names #5

Open
marneu opened this issue Oct 13, 2022 · 0 comments
Open

Howto: I want to get aplain list with all domain names #5

marneu opened this issue Oct 13, 2022 · 0 comments

Comments

@marneu
Copy link

marneu commented Oct 13, 2022

Ubuntu: 20.04
Python: 3.8
Version: fresh git+https://github.com./derJD/python-mailcow.git (python-mailcow-1.0.5.dev4+g802abec)

Imho I was trying:
mailcow domain get --all --fields 'domain_name'
expecting to receive a list with all domain names only.
The result is :

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/prettytable/prettytable.py", line 353, in _validate_field_name
    assert (val in self._field_names) or (val is None)
AssertionError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/sbin/mailcow", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/mailcow/cli.py", line 86, in main
    print(table.get_string(fields=fields))
  File "/usr/local/lib/python3.8/dist-packages/prettytable/prettytable.py", line 1130, in get_string
    options = self._get_options(kwargs)
  File "/usr/local/lib/python3.8/dist-packages/prettytable/prettytable.py", line 846, in _get_options
    self._validate_option(option, kwargs[option])
  File "/usr/local/lib/python3.8/dist-packages/prettytable/prettytable.py", line 246, in _validate_option
    self._validate_all_field_names(option, val)
  File "/usr/local/lib/python3.8/dist-packages/prettytable/prettytable.py", line 360, in _validate_all_field_names
    self._validate_field_name(name, x)
  File "/usr/local/lib/python3.8/dist-packages/prettytable/prettytable.py", line 355, in _validate_field_name
    raise Exception("Invalid field name: %s!" % val)
Exception: Invalid field name: d!

What is the expectation of the --fields parameter?

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

No branches or pull requests

1 participant