The returned appid is now either the part up to
the first @ or the entire string if no @ is present.
This evolution is needed to able the removal
of handling different versions.
Bug-AGL: SPEC-2538
Change-Id: Ibe8cfbb60333702ba33d59d3e89f33688d2a0f51
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
{
std::string appid;
std::size_t pos = id.find("@");
- if(pos != std::string::npos) {
- appid = id.substr(0,pos);
- }
- else {
- AFB_WARNING("input id error.");
- }
+ appid = id.substr(0,pos);
return appid;
}