mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-04 20:40:09 +00:00
Merge pull request #6149 from neo954/rhels8-foo
Fix python error, TabError: inconsistent use of tabs and spaces in indentation
This commit is contained in:
commit
efd954b36f
@ -394,7 +394,7 @@ sub subvars {
|
||||
$inc =~ s/#COLONHTTPPORT#/$httpportsuffix/eg;
|
||||
|
||||
if (($::XCATSITEVALS{xcatdebugmode} eq "1") or ($::XCATSITEVALS{xcatdebugmode} eq "2")) {
|
||||
$inc =~ s/#UNCOMMENTOENABLEDEBUGPORT#/ /g;
|
||||
$inc =~ s/#UNCOMMENTOENABLEDEBUGPORT#//g;
|
||||
}
|
||||
|
||||
if ($::XCATSITEVALS{xcatdebugmode} eq "2") {
|
||||
|
@ -116,8 +116,8 @@ try:
|
||||
#UNCOMMENTOENABLEDEBUGPORT# newcommand = b""
|
||||
#UNCOMMENTOENABLEDEBUGPORT# for i in command[1:]:
|
||||
#UNCOMMENTOENABLEDEBUGPORT# newcommand = newcommand + i + b" "
|
||||
#UNCOMMENTOENABLEDEBUGPORT# output = os.popen(newcommand.decode('utf-8')).read()
|
||||
#UNCOMMENTOENABLEDEBUGPORT# newSocket.send(output.encode())
|
||||
#UNCOMMENTOENABLEDEBUGPORT# output = os.popen(newcommand.decode('utf-8')).read().encode()
|
||||
#UNCOMMENTOENABLEDEBUGPORT# newSocket.send(output)
|
||||
#UNCOMMENTOENABLEDEBUGPORT# break
|
||||
if(command[0] == b"screendump"):
|
||||
newcommand = "cat /dev/vcs"
|
||||
|
Loading…
x
Reference in New Issue
Block a user