GPG encryption fails due to invalid flag
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-duplicity |
Fix Released
|
Critical
|
Jose Guedez |
Bug Description
Running the do-backup action when configuring "gpg_public_key" to enable asymmetrical GPG encryption leads to a failure due to using the wrong flag.
The charm is using "--gpg-key" to enable gpg encryption [1], but the actual flag to do this in duplicity is "--encrypt-key" [2]
Full output of the action below, note the error: "no such option: --gpg-key"
message: "Command \"['duplicity', '--rsync-options=-e \"ssh -i /root/.
'full', '/home/
'--
\"2\" and error output:\nUsage: \n duplicity [full|incremental] [options] source_dir
target_url\n duplicity [restore] [options] source_url target_dir\n duplicity
verify [options] source_url target_dir\n duplicity collection-status [options]
target_url\n duplicity list-current-files [options] target_url\n duplicity cleanup
[options] target_url\n duplicity remove-older-than time [options] target_url\n
\ duplicity remove-
count [options] target_
\ file:///some_dir\n ftp://user[:password]
\ hsi://user[
\ rsync:/
\ rsync:/
\ s3+http://
\ ssh://user[
\ tahoe:/
\ gdocs:/
\ mega://
\ dpbx:///some_dir\n onedrive:
\ mf://user[
\ collection-status <target_url>\n full <source_dir> <target_url>\n incr <source_dir>
<target_url>\n list-current-files <target_url>\n restore <source_url> <target_dir>\n
\ remove-older-than <time> <target_url>\n remove-
\ remove-
error: no such option: --gpg-key\n"
[1] https:/
[2] https:/
Related branches
- Xav Paice (community): Approve
-
Diff: 37 lines (+5/-3)2 files modifiedsrc/lib/lib_duplicity.py (+3/-1)
src/tests/unit/test_lib_duplicity.py (+2/-2)
Changed in charm-duplicity: | |
assignee: | nobody → Jose Guedez (jfguedez) |
importance: | Undecided → Critical |
Changed in charm-duplicity: | |
status: | New → Fix Committed |
Changed in charm-duplicity: | |
status: | Fix Committed → Fix Released |
milestone: | none → 21.01 |