Add minimal output when registering

parent d9ddc444
...@@ -343,7 +343,7 @@ def register(config): ...@@ -343,7 +343,7 @@ def register(config):
certificate_key = parse_certificates(certificate_key) certificate_key = parse_certificates(certificate_key)
certificate = certificate_key[0] certificate = certificate_key[0]
key = certificate_key[1] key = certificate_key[1]
COMP = get_computer_name(certificate) COMP = get_computer_name(certificate)
# Getting configuration parameters # Getting configuration parameters
slapos_configuration = '/etc/opt/slapos/' slapos_configuration = '/etc/opt/slapos/'
config.COMPConfig(slapos_configuration=slapos_configuration, config.COMPConfig(slapos_configuration=slapos_configuration,
...@@ -356,6 +356,8 @@ def register(config): ...@@ -356,6 +356,8 @@ def register(config):
save_former_config(config) save_former_config(config)
# Prepare Slapos Configuration # Prepare Slapos Configuration
slapconfig(config) slapconfig(config)
print "Node has successfully been configured as %s." % COMP
return 0 return 0
def main(): def main():
......
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