Compare commits
2 Commits
066753ebc7
...
4cc5a1f207
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4cc5a1f207 | ||
|
|
8207792bf7 |
@ -14,7 +14,7 @@ rec {
|
||||
packages.x86_64-linux = with nixpkgs.legacyPackages.x86_64-linux; rec {
|
||||
pvemon = python3Packages.buildPythonApplication {
|
||||
pname = "pvemon";
|
||||
version = "1.3.0";
|
||||
version = "1.3.1";
|
||||
src = ./src;
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
pexpect
|
||||
|
||||
@ -65,9 +65,15 @@ def parse_storage_cfg(file_path='/etc/pve/storage.cfg'):
|
||||
else:
|
||||
# Parse key-value pairs within the current storage
|
||||
if current_storage:
|
||||
key, value = line.split(None, 1)
|
||||
sanitized_key = sanitize_key(key.strip())
|
||||
current_storage[sanitized_key] = value.strip()
|
||||
parts = line.split(None, 1)
|
||||
key = parts[0].strip()
|
||||
sanitized_key = sanitize_key(key)
|
||||
if len(parts) > 1:
|
||||
# Regular key-value pair
|
||||
current_storage[sanitized_key] = parts[1].strip()
|
||||
else:
|
||||
# Key with no value, set it to True
|
||||
current_storage[sanitized_key] = True
|
||||
|
||||
# Append the last storage section to the list if any
|
||||
if current_storage:
|
||||
|
||||
@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
||||
|
||||
setup(
|
||||
name='pvemon',
|
||||
version = "1.3.0",
|
||||
version = "1.3.1",
|
||||
packages=find_packages(),
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user