summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/DescriptorHelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceGrid/DescriptorHelper.cpp')
-rw-r--r--cpp/src/IceGrid/DescriptorHelper.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/src/IceGrid/DescriptorHelper.cpp b/cpp/src/IceGrid/DescriptorHelper.cpp
index 4413e1f03c6..89ee8a55c10 100644
--- a/cpp/src/IceGrid/DescriptorHelper.cpp
+++ b/cpp/src/IceGrid/DescriptorHelper.cpp
@@ -1044,6 +1044,11 @@ ServerHelper::operator==(const ServerHelper& helper) const
return false;
}
+ if(_desc->user != helper._desc->user)
+ {
+ return false;
+ }
+
return true;
}
@@ -1066,6 +1071,7 @@ ServerHelper::instantiateImpl(const ServerDescriptorPtr& instance,
instance->activation = resolve(_desc->activation, "activation");
instance->applicationDistrib = _desc->applicationDistrib;
instance->allocatable = _desc->allocatable;
+ instance->user = resolve(_desc->user, "user");
if(!instance->activation.empty() &&
instance->activation != "manual" && instance->activation != "on-demand" && instance->activation != "always")
{
@@ -1147,6 +1153,10 @@ ServerHelper::printImpl(Output& out, const string& application, const string& no
{
out << nl << "deactivationTimeout = `" << _desc->deactivationTimeout << "'";
}
+ if(!_desc->user.empty())
+ {
+ out << nl << "user = `" << _desc->user << "'";
+ }
if(!_desc->applicationDistrib)
{
out << nl << "application distribution = `false'";