@classmethod
    def from_path(cls, path, hostname):
        keypair, certificate = load_certificate_from_path(
            path, b"control-{}.key".format(hostname),
            b"control-{}.crt".format(hostname)
        )
        credential = FlockerCredential(
            path=path, keypair=keypair, certificate=certificate)
        return cls(credential=credential)
Complete partial object data.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/ca/_ca.py/ControlCredential.from_path--crossover with--dataset/ETHPy150Open wichert/rest_toolkit/src/rest_toolkit/abc.py/EditableResource.complete_partial_data