Skip to content

Commit 5dd929f

Browse files
Ready to test
1 parent 1b68382 commit 5dd929f

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

cmapi/cmapi_server/managers/process.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ def _get_prog_name(cls, name: str) -> str:
4848
:rtype: str
4949
"""
5050
if cls.dispatcher_name == 'systemd':
51-
prog = MCSProgs[name]
52-
return ALL_MCS_PROGS[prog].service_name
51+
return ALL_MCS_PROGS[name].service_name
5352
return name
5453

5554
@classmethod

cmapi/cmapi_server/test/test_node_manip.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import logging
22
import socket
33
import unittest
4-
from unittest.mock import ANY, patch
5-
4+
from unittest.mock import patch, ANY
65
from lxml import etree
76

87
from cmapi_server import node_manipulation

cmapi/mcs_node_control/models/node_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from os import mkdir, replace, chown
88
from pathlib import Path
99
from shutil import copyfile
10-
from xml.dom import minidom # to pick up pretty printing functionality
10+
from xml.dom import minidom # to pick up pretty printing functionality
1111

1212
from lxml import etree
1313

@@ -576,4 +576,4 @@ def is_read_only(self, root=None) -> bool:
576576
root = root or self.get_current_config_root()
577577
read_only_nodes = set(get_read_only_nodes(root))
578578
my_names = set(self.get_network_addresses_and_names())
579-
return bool(read_only_nodes.intersection(my_names))
579+
return bool(read_only_nodes.intersection(my_names))

0 commit comments

Comments
 (0)