diff --git a/lib/NGCP/Template/Plugin/Utils.pm b/lib/NGCP/Template/Plugin/Utils.pm index 21adc8b5..3c40f07a 100644 --- a/lib/NGCP/Template/Plugin/Utils.pm +++ b/lib/NGCP/Template/Plugin/Utils.pm @@ -40,6 +40,7 @@ sub to_config_general { sub to_yaml { my ($self, @params) = @_; + return q{} unless $params[0]; return YAML::XS::Dump($params[0]); }