Revision cf0e4232

b/logic/backend.py
158 158
def create_instance(vm, flavor, image, password):
159 159

  
160 160
    nic = {'ip': 'pool', 'mode': 'routed', 'link': settings.GANETI_PUBLIC_LINK}
161
    
162
    if image.backend_id.find("windows") >= 0:
163
        sz = 14000
164
    else:
165
        sz = 4000
161 166

  
162 167
    return rapi.CreateInstance(
163 168
        mode='create',
164 169
        name=vm.backend_id,
165 170
        disk_template='plain',
166
        disks=[{"size": 4000}],     #FIXME: Always ask for a 4GB disk for now
171
        disks=[{"size": sz}],     #FIXME: Always ask for a 4GB disk for now
167 172
        nics=[nic],
168 173
        os=settings.GANETI_OS_PROVIDER,
169 174
        ip_check=False,

Also available in: Unified diff