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 {
|
packages.x86_64-linux = with nixpkgs.legacyPackages.x86_64-linux; rec {
|
||||||
pvemon = python3Packages.buildPythonApplication {
|
pvemon = python3Packages.buildPythonApplication {
|
||||||
pname = "pvemon";
|
pname = "pvemon";
|
||||||
version = "1.3.1";
|
version = "1.3.0";
|
||||||
src = ./src;
|
src = ./src;
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
pexpect
|
pexpect
|
||||||
|
|||||||
@ -65,15 +65,9 @@ def parse_storage_cfg(file_path='/etc/pve/storage.cfg'):
|
|||||||
else:
|
else:
|
||||||
# Parse key-value pairs within the current storage
|
# Parse key-value pairs within the current storage
|
||||||
if current_storage:
|
if current_storage:
|
||||||
parts = line.split(None, 1)
|
key, value = line.split(None, 1)
|
||||||
key = parts[0].strip()
|
sanitized_key = sanitize_key(key.strip())
|
||||||
sanitized_key = sanitize_key(key)
|
current_storage[sanitized_key] = value.strip()
|
||||||
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
|
# Append the last storage section to the list if any
|
||||||
if current_storage:
|
if current_storage:
|
||||||
|
|||||||
@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='pvemon',
|
name='pvemon',
|
||||||
version = "1.3.1",
|
version = "1.3.0",
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user