* Added rstrip to the URL field to prevent issues when users add a trailing / in the config of this module
* Added changelog fragment
* Sorry Mr. Linter, I have removed the empty line :-)
* Fixed punctuation
* Fixed punctuation
(cherry picked from commit 20bd065e77
)
Co-authored-by: Jeffrey van Pelt <jeff@vanpelt.one>
pull/1935/head
parent
e68c68d417
commit
5ffef67f11
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- proxmox inventory - added handling of extra trailing slashes in the URL (https://github.com/ansible-collections/community.general/pull/1914).
|
|
@ -338,7 +338,7 @@ class InventoryModule(BaseInventoryPlugin, Cacheable):
|
||||||
self._read_config_data(path)
|
self._read_config_data(path)
|
||||||
|
|
||||||
# get connection host
|
# get connection host
|
||||||
self.proxmox_url = self.get_option('url')
|
self.proxmox_url = self.get_option('url').rstrip('/')
|
||||||
self.proxmox_user = self.get_option('user')
|
self.proxmox_user = self.get_option('user')
|
||||||
self.proxmox_password = self.get_option('password')
|
self.proxmox_password = self.get_option('password')
|
||||||
self.cache_key = self.get_cache_key(path)
|
self.cache_key = self.get_cache_key(path)
|
||||||
|
|
Loading…
Reference in New Issue