feature #1118: Add default port to sheepdog domains

(cherry picked from commit b2fda99338)
This commit is contained in:
Ruben S. Montero committed 2015-02-12 13:07:59 +01:00
1 parent b78eea3cb3
commit 816ed7f628
1 file changed
+4 -3
+4 -3
View File
@@ -539,8 +539,8 @@ int LibVirtDriver::deployment_description_kvm(
<< "\t\t\t</auth>" << endl;
}
}
else if ( type == "SHEEPDOG" || type == "SHEEPDOG_CDROM" )
{
else if ( type == "sheepdog" || type == "sheepdog_cdrom" )
{
if (type == "SHEEPDOG")
{
file << "\t\t<disk type='network' device='disk'>" << endl;
@@ -556,7 +556,8 @@ int LibVirtDriver::deployment_description_kvm(
{
file << "-" << vm->get_oid() << "-" << disk_id;
}
do_network_hosts(file, sheepdog_host, "tcp");
do_network_hosts(file, sheepdog_host, "tcp", -1);
}
else if ( type == "GLUSTER" || type == "GLUSTER_CDROM" )
{