Code Duplication    Length = 11-11 lines in 2 locations

ocrd_network/ocrd_network/deployment_config.py 2 locations

@@ 77-87 (lines=11) @@
74
        self.credentials = (config['credentials']['username'], config['credentials']['password'])
75
76
77
class QueueConfig:
78
    """ Class to hold information for RabbitMQ-Docker container
79
    """
80
81
    def __init__(self, config: Dict) -> None:
82
        self.address = config['address']
83
        self.port = int(config['port'])
84
        self.username = config['ssh']['username']
85
        self.keypath = config['ssh'].get('path_to_privkey', None)
86
        self.password = config['ssh'].get('password', None)
87
        self.credentials = (config['credentials']['username'], config['credentials']['password'])
88
@@ 64-74 (lines=11) @@
61
        self.deploy_type = deploy_type
62
63
64
class MongoConfig:
65
    """ Class to hold information for Mongodb-Docker container
66
    """
67
68
    def __init__(self, config: Dict) -> None:
69
        self.address = config['address']
70
        self.port = int(config['port'])
71
        self.username = config['ssh']['username']
72
        self.keypath = config['ssh'].get('path_to_privkey', None)
73
        self.password = config['ssh'].get('password', None)
74
        self.credentials = (config['credentials']['username'], config['credentials']['password'])
75
76
77
class QueueConfig: