Commit 429e33cd authored by Volodymyr Yurchenko's avatar Volodymyr Yurchenko
Browse files

Don't set the default value for SetSite

parent 9eb3d83c
......@@ -110,7 +110,7 @@ public:
void Stderr(); // print the stderr of the last executed command
void Token(Option_t* options = "", bool force_restart = true);
TGridResult* SetSite(const char *site = "CERN");
TGridResult* SetSite(const char *site);
const char* Whoami();
//--- Redefinition of superclass methods
......
......@@ -1158,10 +1158,9 @@ const char* TJAlien::Whoami()
TGridResult* TJAlien::SetSite(const char *site)
{
TString cmdline = TString("setSite");
if (site == nullptr || std::string(site).find_first_not_of(' ') == std::string::npos)
site = "CERN";
if (site != nullptr && std::string(site).find_first_not_of(' ') != std::string::npos)
cmdline += TString(" ") + site;
cmdline += TString(" ") + site;
return Command(cmdline);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment