Revision 01d932ad include/RequestManagerPoolInfoFilter.h

View differences:

include/RequestManagerPoolInfoFilter.h
19 19

  
20 20
#include "Request.h"
21 21
#include "Nebula.h"
22
//#include "AuthManager.h"
22
#include "AuthManager.h"
23 23

  
24 24
using namespace std;
25 25

  
......
50 50
    
51 51
    /* -------------------------------------------------------------------- */
52 52

  
53
    PoolSQL *pool;
53
    PoolSQL *           pool;
54
    AuthRequest::Object auth_object;
54 55
};
55 56

  
56 57
/* ------------------------------------------------------------------------- */
......
63 64
        RequestManagerPoolInfoFilter("VirtualMachinePoolInfo",
64 65
                                     "Returns the virtual machine instances pool")
65 66
    {    
66
        Nebula& nd = Nebula::instance();
67
        pool       = nd.get_vmpool();
67
        Nebula& nd  = Nebula::instance();
68
        pool        = nd.get_vmpool();
69
        auth_object = AuthRequest::VM;
68 70
    };
69 71

  
70 72
    ~VirtualMachinePoolInfo(){};
......
80 82
        RequestManagerPoolInfoFilter("TemplatePoolInfo",
81 83
                                     "Returns the virtual machine template pool")
82 84
    {    
83
        Nebula& nd = Nebula::instance();
84
        pool       = nd.get_tpool();
85
        Nebula& nd  = Nebula::instance();
86
        pool        = nd.get_tpool();
87
        auth_object = AuthRequest::TEMPLATE;
85 88
    };
86 89

  
87 90
    ~TemplatePoolInfo(){};
......
102 105
        RequestManagerPoolInfoFilter("VirtualNetworkPoolInfo",
103 106
                                     "Returns the virtual network pool")
104 107
    {    
105
        Nebula& nd = Nebula::instance();
106
        pool       = nd.get_vnpool();
108
        Nebula& nd  = Nebula::instance();
109
        pool        = nd.get_vnpool();
110
        auth_object = AuthRequest::NET;
107 111
    };
108 112

  
109 113
    ~VirtualNetworkPoolInfo(){};
......
119 123
        RequestManagerPoolInfoFilter("ImagePoolInfo",
120 124
                                     "Returns the image pool")
121 125
    {    
122
        Nebula& nd = Nebula::instance();
123
        pool       = nd.get_ipool();
126
        Nebula& nd  = Nebula::instance();
127
        pool        = nd.get_ipool();
128
        auth_object = AuthRequest::IMAGE;
124 129
    };
125 130

  
126 131
    ~ImagePoolInfo(){};

Also available in: Unified diff