mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-15 09:53:37 -06:00
createpool: strip trailing space from source device and host
This commit is contained in:
parent
2e4bda6059
commit
205faada13
@ -320,12 +320,12 @@ class vmmCreatePool(vmmGObjectUI):
|
||||
if selection != -1:
|
||||
return model[selection][1]
|
||||
|
||||
return src.child.get_text()
|
||||
return src.child.get_text().strip()
|
||||
|
||||
def get_config_host(self):
|
||||
host = self.window.get_widget("pool-hostname")
|
||||
if host.get_property("sensitive"):
|
||||
return host.get_text()
|
||||
return host.get_text().strip()
|
||||
return None
|
||||
|
||||
def get_config_format(self):
|
||||
|
Loading…
Reference in New Issue
Block a user