From a9a7e723cb0ffb0655d946cacbf342447a9a817d Mon Sep 17 00:00:00 2001 From: Philip Feairheller Date: Tue, 13 Feb 2024 06:23:53 -0800 Subject: [PATCH] One more reference to the deprecated `subject` field in SerderACDC. (#676) * One more reference to the deprecated `subject` field in SerderACDC. Signed-off-by: pfeairheller * Reapply changes from PR 671 Signed-off-by: pfeairheller --------- Signed-off-by: pfeairheller --- images/keripy.dockerfile | 4 ++-- src/keri/app/cli/commands/ipex/grant.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/images/keripy.dockerfile b/images/keripy.dockerfile index 6a155c28e..ca12837fc 100644 --- a/images/keripy.dockerfile +++ b/images/keripy.dockerfile @@ -1,5 +1,5 @@ # Builder layer -FROM python:3.10.13-alpine3.18 as builder +FROM python:3.10-alpine as builder # Install compilation dependencies RUN apk --no-cache add \ @@ -24,7 +24,7 @@ RUN pip install --upgrade pip && \ mkdir /keripy/src # Copy Python dependency files in -COPY requirements.txt setup.py . +COPY requirements.txt setup.py ./ # Set up Rust environment and install Python dependencies # Must source the Cargo environment for the blake3 library to see # the Rust intallation during requirements install diff --git a/src/keri/app/cli/commands/ipex/grant.py b/src/keri/app/cli/commands/ipex/grant.py index b7b4fd26a..ba9dcb232 100644 --- a/src/keri/app/cli/commands/ipex/grant.py +++ b/src/keri/app/cli/commands/ipex/grant.py @@ -94,7 +94,7 @@ def grantDo(self, tymth, tock=0.0): acdc = signing.serialize(creder, prefixer, seqner, saider) if self.recp is None: - recp = creder.subject['i'] if 'i' in creder.subject else None + recp = creder.attrib['i'] if 'i' in creder.attrib else None elif self.recp in self.hby.kevers: recp = self.recp else: