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

Couldn't process the value of a config pair with bool type on set_config #985

Open
leopaul36 opened this issue Nov 2, 2023 · 2 comments
Labels

Comments

@leopaul36
Copy link

leopaul36 commented Nov 2, 2023

Description

When using Application.set_config() with a bool value, I'm getting the following error:

juju.errors.JujuApplicationConfigError: Couldn't process the value of a config pair : ['is_bootstrap_node', True], value of type <class 'bool'>

The weird thing is that the exact same config object (see example) is parsed correctly when using model.deploy(config=new_config)

Urgency

Casually reporting

Python-libjuju version

3.2.2

Juju version

3.2.3-genericlinux-amd64

Reproduce / Test

    model = Model()
    await model.connect(model_name)

    new_config = {
        "ansible_avalanche_collection_version": "v0.8.9",
        "is_bootstrap_node": True, # Works with "True"
    }

    try:
        action = await model.applications[application_name].set_config(new_config)

    except TimeoutError:
        print("timeout!")
    except Exception:
        raise Exception("Failure")

    finally:
        await model.disconnect()
@leopaul36 leopaul36 added the bug label Nov 2, 2023
@cderici cderici added the 3.x label Nov 15, 2023
Copy link

This issue is marked as incomplete because it has been open 30 days with no activity. Please remove incomplete label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the incomplete old issue, check if it's still valid label Dec 16, 2023
@leopaul36
Copy link
Author

Please keep it open

@cderici cderici added work-in-progress disables stale bot and removed incomplete old issue, check if it's still valid labels Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants