From b5499e48b4409a37037c3da10c857d3a8074e7ec Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Tue, 27 Nov 2012 23:37:09 +0100 Subject: [PATCH] Define fail() and logprint() helpers as early as necessary --- bin/xen-create-image | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/bin/xen-create-image b/bin/xen-create-image index 956386f..322ab30 100755 --- a/bin/xen-create-image +++ b/bin/xen-create-image @@ -834,6 +834,12 @@ my $IP_ADDRESSES = ''; # my $PASSWORD = ''; + + +# Minor helpers for reducing code duplication +sub fail ($) { fail_with_config(@_, \%CONFIG); } +sub logprint ($) { logprint_with_config(@_, \%CONFIG); } + # # Setup default options. # @@ -3981,17 +3987,6 @@ sub setupRootPassword } } -=begin doc - - Minor helpers for reducing code duplication - -=end doc - -=cut - -sub fail ($) { fail_with_config(@_, \%CONFIG); } -sub logprint ($) { logprint_with_config(@_, \%CONFIG); } - =begin doc create a random "string"