From c68aa804c415e4292bd57e232c0c8a90f1d58d5b Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Thu, 21 Jun 2018 06:39:03 +0530 Subject: [PATCH] Remove redundant API method from foreman inventory (#41720) Signed-off-by: Abhijeet Kasurde --- contrib/inventory/foreman.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/contrib/inventory/foreman.py b/contrib/inventory/foreman.py index e1ca8787d6b..fe82c059bd0 100755 --- a/contrib/inventory/foreman.py +++ b/contrib/inventory/foreman.py @@ -229,10 +229,6 @@ class ForemanInventory(object): return params - def _get_facts_by_id(self, hid): - url = "%s/api/v2/hosts/%s/facts" % (self.foreman_url, hid) - return self._get_json(url) - def _get_facts(self, host): """Fetch all host facts of the host""" if not self.want_facts: