Author: arkurth
Date: Mon Feb 27 21:56:16 2017
New Revision: 1784663
URL: http://svn.apache.org/viewvc?rev=1784663&view=rev
Log:
VCL-867
Updated DataStructure.pm::_automethod to not display warnings when
get_image_domain* is called and the data is not defined.
Modified:
vcl/trunk/managementnode/lib/VCL/DataStructure.pm
Modified: vcl/trunk/managementnode/lib/VCL/DataStructure.pm
URL:
http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/DataStructure.pm?rev=1784663&r1=1784662&r2=1784663&view=diff
==============================================================================
--- vcl/trunk/managementnode/lib/VCL/DataStructure.pm (original)
+++ vcl/trunk/managementnode/lib/VCL/DataStructure.pm Mon Feb 27 21:56:16 2017
@@ -900,7 +900,7 @@ sub _automethod : Automethod {
$return_value = eval $hash_path;
}
elsif (!$key_defined) {
- if ($show_warnings && $hash_path !~ /(serverrequest)/) {
+ if ($show_warnings && $hash_path !~
/(serverrequest|image_domain)/) {
notify($ERRORS{'WARNING'}, 0, "corresponding
data has not been initialized for $method_name: $hash_path",
$self->request_data);
}
return sub { };