#!/usr/bin/env python3 """Wizard Kit: Mount Backup Shares""" # pylint: disable=invalid-name # vim: sts=2 sw=2 ts=2 import wk # Functions def main(): """Attempt to mount backup shares and print report.""" wk.std.print_info('Mounting Backup Shares') report = wk.net.mount_backup_shares() for line in report: color = 'GREEN' line = f' {line}' if 'Failed' in line: color = 'RED' elif 'Already' in line: color = 'YELLOW' print(wk.std.color_string(line, color)) if __name__ == '__main__': try: main() except SystemExit: raise except: #pylint: disable=bare-except wk.std.major_exception()