Re: Application_API wiki

Chapman Flack <[email protected]> Tue, 5 Sep 2017 13:26:39 -0400
Newsgroups gmane.comp.archivers.amanda.devel
Message-ID <[email protected]>
On 09/05/2017 01:08 PM, Chapman Flack wrote:
> I've just noticed that on the Application_API ...

I've also noticed there seems to be a known method
check_for_backup_failure() that Amanda::Script_App can
call if it exists in case of failure ... doesn't seem
to be documented on the wiki, but amzfs-sendrecv uses it.

Maybe check_for_backup_failure isn't the best name (AFAICT,
it is not a method that checks anything, but rather a callback
for doing any cleanup needed when Script_App already knows the
backup failed). Maybe on_backup_failure() would be better?

On the other hand, Script_App calls it from print_to_server_and_die
for any value of $self->{action}, not only for backup, so perhaps
just on_failure() ?

Best time for a change, while it isn't documented yet. :)

-Chap