Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

API: Add HOST getparam #5783

Merged
merged 1 commit into from
Nov 30, 2017
Merged

API: Add HOST getparam #5783

merged 1 commit into from
Nov 30, 2017

Conversation

sathieu
Copy link
Contributor

@sathieu sathieu commented Oct 13, 2017

Fixes: #4343

$ret = $ret[$field];
break;
}
echo $ret."\n";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need spaces around dots

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

throw new CentreonClapiException(self::MISSINGPARAMETER);
}
$p = $this->object->getParameters($params[0], $params[1]);
print $p[$params[1]]."\n";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need spaces around dots

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@sathieu
Copy link
Contributor Author

sathieu commented Nov 7, 2017

@kduret ping

$ret = $extended->getParameters($objectId, $field);
$ret = $ret[$field];
}
switch ($params[1]) {
Copy link
Contributor

@loiclau loiclau Nov 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The switch is the same as that employed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. But this one is to convert parameter value if needed. Otherwise, the ->getParameters would be duplicated.

loiclau added a commit that referenced this pull request Nov 27, 2017
loiclau added a commit that referenced this pull request Nov 27, 2017
Guillaume28 pushed a commit that referenced this pull request Nov 30, 2017
Guillaume28 pushed a commit that referenced this pull request Nov 30, 2017
* fix(doc) doc for host get param #5783

* API: Add HOST getparam
@loiclau loiclau merged commit 1607476 into centreon:2.8.x Nov 30, 2017
@loiclau
Copy link
Contributor

loiclau commented Nov 30, 2017

thanks for your contribution

@adr-mo
Copy link
Contributor

adr-mo commented Dec 6, 2017

UPDATE: #5946 (add possibility to get several params and fix 3 variables not found)

@adr-mo
Copy link
Contributor

adr-mo commented Dec 6, 2017

Looks good to me.

Tested with the latest update brought by #5946.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants