mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
removed unused imports and var
This commit is contained in:
parent
8265860f07
commit
e3107cdeb6
2 changed files with 1 additions and 4 deletions
|
@ -28,7 +28,6 @@ import time
|
||||||
import yaml
|
import yaml
|
||||||
import re
|
import re
|
||||||
import getpass
|
import getpass
|
||||||
import signal
|
|
||||||
import subprocess
|
import subprocess
|
||||||
from abc import ABCMeta, abstractmethod
|
from abc import ABCMeta, abstractmethod
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,6 @@ import yaml
|
||||||
import time
|
import time
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
from collections import defaultdict
|
|
||||||
from jinja2 import Environment, FileSystemLoader
|
from jinja2 import Environment, FileSystemLoader
|
||||||
|
|
||||||
import ansible.constants as C
|
import ansible.constants as C
|
||||||
|
@ -40,7 +39,7 @@ from ansible.galaxy.role import GalaxyRole
|
||||||
from ansible.galaxy.login import GalaxyLogin
|
from ansible.galaxy.login import GalaxyLogin
|
||||||
from ansible.galaxy.token import GalaxyToken
|
from ansible.galaxy.token import GalaxyToken
|
||||||
from ansible.playbook.role.requirement import RoleRequirement
|
from ansible.playbook.role.requirement import RoleRequirement
|
||||||
from ansible.module_utils._text import to_bytes, to_text
|
from ansible.module_utils._text import to_text
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from __main__ import display
|
from __main__ import display
|
||||||
|
@ -177,7 +176,6 @@ class GalaxyCLI(CLI):
|
||||||
|
|
||||||
init_path = self.get_opt('init_path', './')
|
init_path = self.get_opt('init_path', './')
|
||||||
force = self.get_opt('force', False)
|
force = self.get_opt('force', False)
|
||||||
offline = self.get_opt('offline', False)
|
|
||||||
|
|
||||||
role_name = self.args.pop(0).strip() if self.args else None
|
role_name = self.args.pop(0).strip() if self.args else None
|
||||||
if not role_name:
|
if not role_name:
|
||||||
|
|
Loading…
Reference in a new issue