mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Remove unused imports.
This commit is contained in:
parent
9e934acfca
commit
08272dc25d
10 changed files with 2 additions and 37 deletions
|
@ -15,7 +15,6 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from ansible import errors
|
||||
import ansible.constants as C
|
||||
|
||||
class Host(object):
|
||||
|
@ -63,4 +62,3 @@ class Host(object):
|
|||
groups = self.get_groups()
|
||||
results['group_names'] = sorted([ g.name for g in groups if g.name != 'all'])
|
||||
return results
|
||||
|
||||
|
|
|
@ -17,17 +17,13 @@
|
|||
|
||||
#############################################
|
||||
|
||||
import fnmatch
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
import ansible.constants as C
|
||||
from ansible.inventory.host import Host
|
||||
from ansible.inventory.group import Group
|
||||
from ansible.inventory.expand_hosts import detect_range
|
||||
from ansible.inventory.expand_hosts import expand_hostname_range
|
||||
from ansible import errors
|
||||
from ansible import utils
|
||||
|
||||
|
||||
class InventoryParser(object):
|
||||
"""
|
||||
|
@ -170,5 +166,3 @@ class InventoryParser(object):
|
|||
else:
|
||||
(k,v) = line.split("=",1)
|
||||
group.set_variable(k,v)
|
||||
|
||||
|
||||
|
|
|
@ -17,12 +17,10 @@
|
|||
|
||||
#############################################
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import ansible.constants as C
|
||||
from ansible.inventory.host import Host
|
||||
from ansible.inventory.group import Group
|
||||
from ansible import errors
|
||||
from ansible import utils
|
||||
|
||||
class InventoryScript(object):
|
||||
|
@ -53,4 +51,3 @@ class InventoryScript(object):
|
|||
all.add_host(host)
|
||||
all.add_child_group(group)
|
||||
return groups
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue