Action list eats the first character in the listed containers names

Bug #1806607 reported by Bogdan Dobrelya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
paunch
Confirmed
Undecided
Unassigned
tripleo
Incomplete
Medium
Unassigned

Bug Description

> /usr/lib/python2.7/site-packages/paunch/cmd.py(375)take_action()
-> name = i.get('Name', '/')[1:] # strip the leading slash
(Pdb) i.get('Name')
u'test'
(Pdb) i.get('Name', '/')[1:]
u'est'

And the output looks like:

[root@localhost paunch]# /usr/bin/paunch -v list --default-runtime podman --managed-by paunch
+---------------+-----------+----------------------------------+----------+--------+
| config | container | image | command | status |
+---------------+-----------+----------------------------------+----------+--------+
| tripleo_step4 | est | docker.io/library/busybox:latest | sleep 20 | exited |
+---------------+-----------+----------------------------------+----------+--------+

Changed in paunch:
status: New → Confirmed
Revision history for this message
Cédric Jeanneret (cjeanner) wrote :

maybe using os.path.basename is a more secure thing?

Changed in tripleo:
status: New → Triaged
importance: Undecided → Medium
milestone: none → stein-2
Changed in tripleo:
milestone: stein-2 → stein-3
Changed in tripleo:
milestone: stein-3 → train-1
Changed in tripleo:
milestone: train-1 → train-2
Changed in tripleo:
milestone: train-2 → train-3
Changed in tripleo:
milestone: train-3 → ussuri-1
Changed in tripleo:
milestone: ussuri-1 → ussuri-2
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-2 → ussuri-3
wes hayutin (weshayutin)
Changed in tripleo:
status: Triaged → Incomplete
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-3 → ussuri-rc3
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-rc3 → victoria-1
Changed in tripleo:
milestone: victoria-1 → victoria-3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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