pig snorting sounds
This commit is contained in:
parent
f75575313b
commit
e55798494b
@ -83,10 +83,11 @@ class ShellScriptSpoke(VirtualizationInterface):
|
|||||||
completedProcess = run([join(current_app.root_path, 'shell_scripts/get.sh'), id], capture_output=True)
|
completedProcess = run([join(current_app.root_path, 'shell_scripts/get.sh'), id], capture_output=True)
|
||||||
self.validate_completed_process(completedProcess)
|
self.validate_completed_process(completedProcess)
|
||||||
lines = completedProcess.stdout.splitlines()
|
lines = completedProcess.stdout.splitlines()
|
||||||
ipaddr = lines[0].decode("utf-8")
|
|
||||||
if len(lines) == 0:
|
if len(lines) == 0:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
ipaddr = lines[0].decode("utf-8")
|
||||||
|
|
||||||
if not re.match(r"^([0-9]{1,3}\.){3}[0-9]{1,3}$", ipaddr):
|
if not re.match(r"^([0-9]{1,3}\.){3}[0-9]{1,3}$", ipaddr):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user