Commit 2f2a5ad0 authored by Iliya Manolov's avatar Iliya Manolov Committed by Ivan Tyagov

Removed password output when entering ERP5 magics.

@Tyagov  @kirr 

/reviewed-on nexedi/slapos!171
parent 2e742fe5
......@@ -47,7 +47,7 @@ md5sum = d7d4a7e19d55bf14007819258bf42100
[erp5-kernel]
<= download-file-base
filename = ERP5kernel.py.jinja
md5sum = 5e7e0acef2f32e75f8f17bc851414aa1
md5sum = 0bcc802a7723b58c1e71269951d751eb
[kernel-json]
<= download-file-base
......
......@@ -107,7 +107,10 @@ class ERP5Kernel(Kernel):
magic_value = code.split()[1]
# Set magic_value to the required attribute
setattr(self, magic_info.variable_name , magic_value)
self.response = 'Your %s is %s. '%(magic_info.magic_name, magic_value)
if magic_info.magic_name != "erp5_password":
self.response = 'Your %s is %s.\n'%(magic_info.magic_name, magic_value)
else:
self.response = None
# Catch exception while setting attribute and set message in response
except AttributeError:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment