'Returns prompt string based on current_module attribute.
Adding module prefix (module.name) if current_module attribute is set.
:return: prompt string with appropriate module prefix.'

@property
def prompt(self):

    if self.current_module:
        try:
            return self.module_prompt_template.format(host=self.prompt_hostname, module=self.module_metadata['name'])
        except (AttributeError, KeyError):
            return self.module_prompt_template.format(host=self.prompt_hostname, module='UnnamedModule')
    else:
        return self.raw_prompt_template.format(host=self.prompt_hostname)
