|
@@ -42,8 +42,7 @@ class SecretKeepassAttachment(Secret):
|
|
|
|
|
|
|
|
def create(self, keepass: KeePass):
|
|
def create(self, keepass: KeePass):
|
|
|
value = keepass.read_entry_attachment(self.key, self.attachment)
|
|
value = keepass.read_entry_attachment(self.key, self.attachment)
|
|
|
- args = ["--replace", self.name, "-"]
|
|
|
|
|
- Podman.secret_create(args, input=value.encode())
|
|
|
|
|
|
|
+ Podman.secret_create(self.name, value=value.encode())
|
|
|
|
|
|
|
|
@classmethod
|
|
@classmethod
|
|
|
def from_line(cls, name: str, key: str, attachment: str):
|
|
def from_line(cls, name: str, key: str, attachment: str):
|
|
@@ -57,8 +56,7 @@ class SecretKeepassAttribute(Secret):
|
|
|
|
|
|
|
|
def create(self, keepass: KeePass):
|
|
def create(self, keepass: KeePass):
|
|
|
value = keepass.read_entry_attribute(self.key, self.attribute)
|
|
value = keepass.read_entry_attribute(self.key, self.attribute)
|
|
|
- args = ["--replace", self.name, "-"]
|
|
|
|
|
- Podman.secret_create(args, input=value.encode())
|
|
|
|
|
|
|
+ Podman.secret_create(self.name, value=value.encode())
|
|
|
|
|
|
|
|
@classmethod
|
|
@classmethod
|
|
|
def from_line(cls, name: str, key: str, attribute: str):
|
|
def from_line(cls, name: str, key: str, attribute: str):
|
|
@@ -71,7 +69,7 @@ class SecretFile(Secret):
|
|
|
|
|
|
|
|
def create(self, keepass: KeePass):
|
|
def create(self, keepass: KeePass):
|
|
|
args = ["--replace", self.name, self.host_path]
|
|
args = ["--replace", self.name, self.host_path]
|
|
|
- Podman.secret_create(args)
|
|
|
|
|
|
|
+ Podman.secret_create(self.name, host_path=self.host_path)
|
|
|
|
|
|
|
|
@classmethod
|
|
@classmethod
|
|
|
def from_line(cls, name: str, path: str):
|
|
def from_line(cls, name: str, path: str):
|