Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-rakov committed Dec 22, 2016
1 parent 0f4c30c commit 4f96dc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zapret2acl/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def send_line(session,line):
def send_lines(session,lines):
session.write('\r'.join(lines).encode('utf-8')+'\r')

def send_acl(acl,options):
def send_acl(acl_data,options):
user=getOption(options,'user')
password=getOption(options,'password')
host=getOption(options,'cisco')
Expand Down Expand Up @@ -140,7 +140,7 @@ def send_acl(acl,options):
yield "exit"

buf=[]
for line in acl:
for line in acl_data:
buf.append(line)

if len(buf)>100:
Expand Down

0 comments on commit 4f96dc3

Please sign in to comment.