1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

Make oneadmin's networks "public"

git-svn-id: http://svn.opennebula.org/one/trunk@737 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Rubén S. Montero 2009-07-23 13:31:42 +00:00
parent c5cc2c2269
commit 4dedef9b6b

View File

@ -667,11 +667,11 @@ int VirtualMachine::get_network_leases()
return -1;
}
if ( vn->get_uid() != uid)
if ( vn->get_uid() != uid && vn->get_uid() != 0)
{
ostringstream ose;
ose << "Owner [" << uid << "] of the VM doesn't have ownership of Virtual Network ["
<< vn->get_uid() << "]";
ose << "Owner " << uid << " of the VM doesn't have ownership of Virtual Network "
<< vn->get_uid();
Nebula::log("VMM", Log::ERROR, ose);
return -1;
}