That allows marking a host as ready to be shared. Replace the current
callers that open-code it.
This commit also fixes a bug where Ident was used instead of 'host' as
resource.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
Changes since v4:
- New in this version.
guest_editconfig_nocd
host_install_postboot_complete
target_core_dump_setup
- sha256file
+ sha256file host_shared_mark_ready
);
%EXPORT_TAGS = ( );
return $truncate ? substr($digest, 0, $truncate) : $digest;
}
+sub host_shared_mark_ready($$) {
+ my ($ho,$sharetype) = @_;
+
+ $mjobdb->jobdb_resource_shared_mark_ready('host', $ho->{Name},
+ $sharetype);
+}
+
1;
# Proceed with the install
install();
-resource_shared_mark_ready($ho, "build-freebsd-".
- sha256file("$path_prefix/install.img", 16));
+host_shared_mark_ready($ho, "build-freebsd-".
+ sha256file("$path_prefix/install.img", 16));
ccache_setup();
gitcache_setup();
}
-$mjobdb->jobdb_resource_shared_mark_ready
- ($ho->{Ident}, $ho->{Name}, "build-".$ho->{Suite}."-".$r{arch});
+
+host_shared_mark_ready($ho, "build-".$ho->{Suite}."-".$r{arch});