We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 867da79 commit cd61bcaCopy full SHA for cd61bca
1 file changed
device/dell/x86_64-dellemc_z9432f_c3758-r0/plugins/psuutil.py
@@ -176,10 +176,10 @@ def get_psu_presence(self, index):
176
177
if index == 1:
178
p = subprocess.run(self.IPMI_PSU1_DATA, capture_output=True, universal_newlines=True)
179
- cmd_status, line = p.returncode, p.stdout.replace('\n', '')
+ cmd_status, line = p.returncode, p.stdout
180
elif index == 2:
181
p = subprocess.run(self.IPMI_PSU2_DATA, capture_output=True, universal_newlines=True)
182
183
else:
184
logging.error("Invalid PSU number:" + index)
185
if line[-1:] == '\n':
0 commit comments