def get_swift_conn(self, params=None):
        if params is None:
            params = self.config.cloud

        conn = swift_client.Connection(user=params.user,
                                       key=params.password,
                                       tenant_name=params.tenant,
                                       authurl=params.auth_url,
                                       auth_version="2",
                                       cacert=params.cacert,
                                       insecure=params.insecure)
        return conn.get_auth()
Getting nova client.
dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry/lib/os/object_storage/swift_storage.py/SwiftStorage.get_swift_conn