Skip to content

Commit

Permalink
pylint warn
Browse files Browse the repository at this point in the history
  • Loading branch information
nagworld9 committed Aug 4, 2023
1 parent 6cca6b4 commit c20a841
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
elif sys.version_info[0] == 2:
import httplib as httpclient # pylint: disable=E0401

NON_ROOT_USER = 'unknown_user'
ROOT_USER = 'root'
WIRESERVER_ENDPOINT_FILE = '/var/lib/waagent/WireServerEndpoint'
WIRESERVER_URL = '168.63.129.16'
Expand Down Expand Up @@ -406,13 +405,6 @@ def verify_non_root_dcp_rule():


def main():

parser = argparse.ArgumentParser()
parser.add_argument('-u', '--user', required=True, help="Non root user")
args = parser.parse_args()

NON_ROOT_USER = args.user

log.info("** Current IP table rules\n")
print_current_iptable_rules()

Expand All @@ -423,5 +415,9 @@ def main():
verify_non_root_dcp_rule()


parser = argparse.ArgumentParser()
parser.add_argument('-u', '--user', required=True, help="Non root user")
args = parser.parse_args()
NON_ROOT_USER = args.user
run_remote_test(main)

0 comments on commit c20a841

Please sign in to comment.