yyzi / pynginxconfig Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/pynginxconfig
License: MIT License
Automatically exported from code.google.com/p/pynginxconfig
License: MIT License
What steps will reproduce the problem?
1. My nginx config has an upstream block
upstream my_cluster {
ip_hash;
server 1.1.1.1;
}
2. nc.loadf(filename)
print nc.get(['(http',), (''upstream', 'my_cluster')])
3. The output would be
[(None, 'ip_hash'), ('server', '1.1.1.1')]
Notice the None in tuple (None, 'ip_hash')
What is the expected output? What do you see instead?
[('ip_hash'), ('server', '1.1.1.1')]
What version of the product are you using? On what operating system?
0.3.2
linux
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 17 Oct 2013 at 10:42
element = item_arr.pop(0)
This line mutates the parameter to the get() function, creating confusion for
callers.
Original issue reported on code.google.com by [email protected]
on 26 Mar 2014 at 8:24
What steps will reproduce the problem?
1. Trying to save a config file into directory without access permission.
What is the expected output? What do you see instead?
Expected: Throw exception IOError.
Actual result: UnboundLocalError: local variable 'f' referenced before
assignment.
What version of the product are you using? On what operating system?
0.3.2
Please provide any additional information below.
I created a patch which fixes this issue.
Original issue reported on code.google.com by [email protected]
on 14 Jan 2015 at 1:37
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.