Skip to content

Commit f6c4b22

Browse files
committed
agent: Remove the main() method from LibvirtComputingResource
Seems like very ancient code which is not needed.
1 parent 2f44ed0 commit f6c4b22

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

‎plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java‎

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,28 +1064,6 @@ public boolean stop() {
10641064
return true;
10651065
}
10661066

1067-
public static void main(String[] args) {
1068-
s_logger.addAppender(new org.apache.log4j.ConsoleAppender(
1069-
new org.apache.log4j.PatternLayout(), "System.out"));
1070-
LibvirtComputingResource test = new LibvirtComputingResource();
1071-
Map<String, Object> params = new HashMap<String, Object>();
1072-
try {
1073-
test.configure("test", params);
1074-
} catch (ConfigurationException e) {
1075-
System.out.println(e.getMessage());
1076-
e.printStackTrace();
1077-
}
1078-
String result = null;
1079-
// String result = test.startDomainRouter("domr1",
1080-
// "/var/lib/images/centos.5-4.x86-64/centos-small.img", 128, "0064",
1081-
// "02:00:30:00:01:01", "00:16:3e:77:e2:a1", "02:00:30:00:64:01");
1082-
boolean created = (result == null);
1083-
s_logger.info("Domain " + (created ? " " : " not ") + " created");
1084-
1085-
s_logger.info("Rule " + (created ? " " : " not ") + " created");
1086-
test.stop();
1087-
}
1088-
10891067
@Override
10901068
public Answer executeRequest(Command cmd) {
10911069

0 commit comments

Comments
 (0)