Coder Social home page Coder Social logo

pynginxconfig's People

Contributors

feroxtl avatar

Stargazers

Roman avatar  avatar

Watchers

James Cloos avatar

Forkers

zzy25 liu071900

pynginxconfig's Issues

upstream load balancing method name not parsed correctly

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

Bug in savef method

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:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.