]> git.ipfire.org Git - thirdparty/libvirt.git/commit
esx_vi_generator: Simplify alignment function
authorRadostin Stoyanov <rstoyanov1@gmail.com>
Tue, 20 Mar 2018 06:48:51 +0000 (06:48 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 20 Mar 2018 12:13:35 +0000 (12:13 +0000)
commitf3a99869ff0b2679079aa26a5dfd1e62272b1318
treebea6c46ec10bf1d164cf5eef6589fef6f0a638f6
parentb89111afed3484ef9092e38656e68011a3247285
esx_vi_generator: Simplify alignment function

Generate whitespace using the standard function ljust() that is
available in both Py3 [1] and Py2 [2].

1: https://docs.python.org/3/library/stdtypes.html?highlight=strip#str.ljust
2: https://docs.python.org/2.7/library/string.html#string.ljust

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
src/esx/esx_vi_generator.py