Python module error on valid command

Bug #1887953 reported by Logan Blyth
256
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyghmi
Fix Released
Undecided
Logan Blyth

Bug Description

Problem statement:

./.local/bin/pyghmiutil mgmt-addres-of-bmc.mycomputers.com bmc_admin power on

Results in an error:

<stack trace snip>
 bmcs = string.split(bmc, ",")
AttributeError: module 'string' has no attribute 'split'

My python version is 3.8. I am not sure what the targeted versions of support are for this project.

bmcs = bmc.split(',')

fixes my problem locally and I believe that line will run in python versions going back to 2.7.

Logan Blyth (lblyth)
information type: Public → Public Security
Logan Blyth (lblyth)
Changed in pyghmi:
assignee: nobody → Logan Blyth (lblyth)
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to pyghmi (master)

Fix proposed to branch: master
Review: https://review.opendev.org/742017

Changed in pyghmi:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to pyghmi (master)

Reviewed: https://review.opendev.org/742017
Committed: https://git.openstack.org/cgit/x/pyghmi/commit/?id=dc985204697782e08679eb6d6e7e3638373ec530
Submitter: Zuul
Branch: master

commit dc985204697782e08679eb6d6e7e3638373ec530
Author: Logan Blyth <email address hidden>
Date: Mon Jul 20 15:09:19 2020 -0400

    Closes-Bug: 1887953

    Change-Id: I057ce1cdf978f6e965e3f7a37950b01a51d7349c

Changed in pyghmi:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.