]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Require LWP module at run time rather than at compile time
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 13 May 2014 13:18:49 +0000 (15:18 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 13 May 2014 13:19:06 +0000 (15:19 +0200)
This module is only needed with --amt.

novaboot

index 0c752261464a4b57fed34b9ea7eba40ca4424cf0..bab4f431da94c6c7107c62db69852b6c26e9040f 100755 (executable)
--- a/novaboot
+++ b/novaboot
@@ -589,8 +589,8 @@ elsif ($remote_cmd) {
     $exp = Expect->spawn($remote_cmd);
 }
 elsif (defined $amt) {
-    use LWP::UserAgent;
-    use LWP::Authen::Digest;
+    require LWP::UserAgent;
+    require LWP::Authen::Digest;
 
     sub genXML {
         my ($host, $username, $password, $schema, $className, $pstate) = @_;