Skip to content

Error on image-upload #262

@cleeyv

Description

@cleeyv

When trying to use linode-cli image-upload I'm getting the following error on an Arch-based system with the build of linode-cli from the AUR (version 5.8.1):

$ linode-cli image-upload --label "nixos-test" nixos.img.gz
Traceback (most recent call last):
  File "/usr/bin/linode-cli", line 33, in <module>
    sys.exit(load_entry_point('linode-cli===fatal.-.N.o', 'console_scripts', 'linode-cli')())
  File "/usr/lib/python3.9/site-packages/linodecli/__init__.py", line 407, in main
    plugins.invoke(parsed.command, plugin_args, context)
  File "/usr/lib/python3.9/site-packages/linodecli/plugins/__init__.py", line 33, in invoke
    plugin.call(args, context)
  File "/usr/lib/python3.9/site-packages/linodecli/plugins/image-upload.py", line 85, in call
    context.client.config.update(parsed)
TypeError: update() missing 1 required positional argument: 'allowed_defaults'

I'm also seeing the same error when running linode-cli from the NixOS unstable channel (also version 5.8.1):

$  linode-cli image-upload --label "nixos-test" nixos.img.gz
Traceback (most recent call last):
  File "/nix/store/hhfxpxpvwavg85nnsihmdd09xpbqj8c2-linode-cli-5.8.1/bin/.linode-cli-wrapped", line 9, in <module>
    sys.exit(main())
  File "/nix/store/hhfxpxpvwavg85nnsihmdd09xpbqj8c2-linode-cli-5.8.1/lib/python3.9/site-packages/linodecli/__init__.py", line 407, in main
    plugins.invoke(parsed.command, plugin_args, context)
  File "/nix/store/hhfxpxpvwavg85nnsihmdd09xpbqj8c2-linode-cli-5.8.1/lib/python3.9/site-packages/linodecli/plugins/__init__.py", line 33, in invoke
    plugin.call(args, context)
  File "/nix/store/hhfxpxpvwavg85nnsihmdd09xpbqj8c2-linode-cli-5.8.1/lib/python3.9/site-packages/linodecli/plugins/image-upload.py", line 85, in call
    context.client.config.update(parsed)
TypeError: update() missing 1 required positional argument: 'allowed_defaults'

I have never used the image-upload plugin before so I don't have an example of a previously working version to compare to. Let me know if there's anything further I should try to workaround or debug this. Thanks.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions