cmds.secrets.lib.FilesContext: Fix handling of inexistent secrets #19
1 changed files with 2 additions and 2 deletions
|
|
@ -159,9 +159,9 @@ class FilesContext:
|
|||
else:
|
||||
old_mode = stat.S_IMODE(st.mode)
|
||||
old_meta = self._format_metadata(st.owner, st.group, old_mode)
|
||||
old_content = (await self.ctx.get(dst)).stdout_str
|
||||
old_content = (await self.ctx.get(dst)).stdout_str_or_none
|
||||
|
||||
content_changed = old_content != new_content
|
||||
content_changed = old_content is None or old_content != new_content
|
||||
metadata_changed = (
|
||||
st.owner != owner or st.group != group or old_mode != mode
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue