Compare commits
No commits in common. "4cc5a1f2071a2cbc8779c999da0bf00ed9b24a14" and "066753ebc7aeae3a2b2543ea1c0ca6006cd51ba4" have entirely different histories.
4cc5a1f207
...
066753ebc7
@ -14,7 +14,7 @@ rec {
|
||||
packages.x86_64-linux = with nixpkgs.legacyPackages.x86_64-linux; rec {
|
||||
pvemon = python3Packages.buildPythonApplication {
|
||||
pname = "pvemon";
|
||||
version = "1.3.1";
|
||||
version = "1.3.0";
|
||||
src = ./src;
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
pexpect
|
||||
|
||||
@ -65,15 +65,9 @@ def parse_storage_cfg(file_path='/etc/pve/storage.cfg'):
|
||||
else:
|
||||
# Parse key-value pairs within the current storage
|
||||
if current_storage:
|
||||
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
|
||||
key, value = line.split(None, 1)
|
||||
sanitized_key = sanitize_key(key.strip())
|
||||
current_storage[sanitized_key] = value.strip()
|
||||
|
||||
# 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.1",
|
||||
version = "1.3.0",
|
||||
packages=find_packages(),
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user