Remove headfings in Error and status and sort out non global opening of DBs
This commit is contained in:
9
Targets/Nutups/Nutups-Custom.pm
Normal file → Executable file
9
Targets/Nutups/Nutups-Custom.pm
Normal file → Executable file
@@ -191,12 +191,17 @@ sub get_model_options {
|
||||
return ['Error occurred'];
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
# Remove "/usr/sbin" from the front of each line
|
||||
=======
|
||||
# Remove "/usr/sbin/" from the front of each line
|
||||
>>>>>>> 75aaf422042b2af06071fd64175eb15f6c4ae92b
|
||||
s{^/usr/sbin/}{} for @output;
|
||||
|
||||
# Trim whitespace from each element and return the array
|
||||
chomp(@output); # Remove newline characters from each line
|
||||
return @output; # Return the array of modified output lines
|
||||
<<<<<<< HEAD
|
||||
}
|
||||
|
||||
sub get_ups_details {
|
||||
@@ -230,5 +235,7 @@ sub get_ups_details {
|
||||
}
|
||||
|
||||
return $formatted_output;
|
||||
=======
|
||||
>>>>>>> 75aaf422042b2af06071fd64175eb15f6c4ae92b
|
||||
}
|
||||
1;
|
||||
1;
|
||||
|
Reference in New Issue
Block a user