Bug 693324
Summary: | sfdisk's python interface only accepts lists of type 'list' for the lines parameter | ||
---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Richard W.M. Jones <rjones> |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED UPSTREAM | QA Contact: | |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | unspecified | CC: | erez, mbooth, virt-maint |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 693306 | Environment: | |
Last Closed: | 2011-04-04 11:49:04 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 693306 |
Description
Richard W.M. Jones
2011-04-04 10:30:18 UTC
This commit appears to work for me: http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=afa17809599f3ebc82c3feef025ca812fb26c9fe It changes the generated code something like this: [...] @@ -1771,6 +1772,7 @@ u"""This creates an LVM volume group called "volgroup" from the non-empty list of physical volumes "physvols". """ + physvols = list (physvols) return libguestfsmod.vgcreate (self._o, volgroup, physvols) def lvcreate (self, logvol, volgroup, mbytes): @@ -1815,6 +1817,7 @@ This command is dangerous. Without careful use you can easily destroy all your data. """ + lines = list (lines) return libguestfsmod.sfdisk (self._o, device, cyls, heads, sectors, lines) def write_file (self, path, content, size): [...] Fix will be included in stable branch version 1.8.5. |