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

[BUG]: "a bytes-like object is required, not 'str'" on sonic_interface module #339

Open
jguilford opened this issue Feb 19, 2024 · 0 comments
Assignees

Comments

@jguilford
Copy link

Bug Description

"msg": "a bytes-like object is required, not 'str'",
"invocation": {
"module_args": {
"config": [
{
"name": "Eth1/1",
"description": "Uplink to UNV-LR1-SP1",
"enabled": null,
"mtu": null,
"speed": null,
"auto_negotiate": null,
"advertised_speed": null,
"fec": null
}
],
"state": "merged"
}

Product Name

Dell Enterprise Sonic

Component or Module Name

sonic_interface

DellEMC Enterprise SONiC Ansible Collection Version

2.4.0

SONiC Software Version

4.0.1

Configuration

Ran through AWX

- name: Interface Manager
  connection: httpapi
  dellemc.enterprise_sonic.sonic_interfaces:
    config:
      - name: "{{ item.name }}"
        description: "{{ item.description }}"

enabled: "{{ item.enabled | bool }}"

    state: merged

Steps to Reproduce

Ran through AWX

Expected Behavior

Update Description, and Enabled State without Error

Actual Behavior

"a bytes-like object is required, not 'str'"

Logs

{
"started": 1,
"finished": 1,
"stdout": "",
"stderr": "",
"stdout_lines": [],
"stderr_lines": [],
"ansible_job_id": "j708448897745.301",
"results_file": "/runner/.ansible_async/j708448897745.301",
"code": -32603,
"msg": "a bytes-like object is required, not 'str'",
"invocation": {
"module_args": {
"config": [
{
"name": "PortChannel 3",
"description": "UNV-LR1-L1 E1/3 & UNV-LR1-L2 E1/3",
"enabled": null,
"mtu": null,
"speed": null,
"auto_negotiate": null,
"advertised_speed": null,
"fec": null
}
],
"state": "merged"
}
}

Screenshots

No response

Additional Information

No response

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

2 participants