Browse Source

Fix select.epoll() not found AttributeError by changing import order

Change-Id: I17728edece55cfcf0f5682d9eaeecedd8e99cf26
Pooja Ghumre 2 years ago
parent
commit
84a8238118
2 changed files with 4 additions and 3 deletions
  1. 3
    3
      mors/pf9_mors.py
  2. 1
    0
      setup.py

+ 3
- 3
mors/pf9_mors.py View File

@@ -15,15 +15,15 @@ See the License for the specific language governing permissions and
15 15
 limitations under the License.
16 16
 """
17 17
 
18
-from paste.deploy import loadapp
19
-from eventlet import wsgi
20 18
 import eventlet
19
+eventlet.monkey_patch()
20
+from eventlet import wsgi
21
+from paste.deploy import loadapp
21 22
 import argparse, logging
22 23
 import logging.handlers
23 24
 import ConfigParser, os
24 25
 from mors import mors_wsgi
25 26
 
26
-eventlet.monkey_patch()
27 27
 def _get_arg_parser():
28 28
     parser = argparse.ArgumentParser(description="Lease Manager for VirtualMachines")
29 29
     parser.add_argument('--config-file', dest='config_file', default='/etc/pf9/pf9-mors.ini')

+ 1
- 0
setup.py View File

@@ -43,6 +43,7 @@ setup(name='mors',
43 43
           'sqlalchemy-migrate==0.9.5',
44 44
           'PyMySQL',
45 45
           'eventlet==0.18.4',
46
+          'requests==2.13',
46 47
           'nose',
47 48
           'proboscis'
48 49
       ],

Loading…
Cancel
Save