/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to mandos-ctl

* mandos-ctl (main): Bug fix: Make --secret actually work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
331
331
                           dbus_interface=dbus.PROPERTIES_IFACE)
332
332
            if options.secret is not None:
333
333
                client.Set(client_interface, "Secret",
334
 
                           dbus.ByteArray(open(options.secret,
335
 
                                               "rb").read()),
 
334
                           dbus.ByteArray(options.secret.read()),
336
335
                           dbus_interface=dbus.PROPERTIES_IFACE)
337
336
            if options.approved_by_default is not None:
338
337
                client.Set(client_interface, "ApprovedByDefault",