mirror of
				https://github.com/retspen/webvirtcloud
				synced 2025-07-31 12:41:08 +00:00 
			
		
		
		
	Live resize VM Memory activate. Redirection fix for resizing operations. Some typo & indent fix
This commit is contained in:
		
							parent
							
								
									228a0949d1
								
							
						
					
					
						commit
						60684cc7b1
					
				
					 2 changed files with 8 additions and 13 deletions
				
			
		| 
						 | 
				
			
			@ -432,11 +432,7 @@
 | 
			
		|||
                                                <small><input type="checkbox" class="js-custom__checkbox" /> {% trans "Custom value" %}</small>
 | 
			
		||||
                                            </div>
 | 
			
		||||
                                        </div>
 | 
			
		||||
                                        {% ifequal status 5 %}
 | 
			
		||||
                                        <button type="submit" class="btn btn-lg btn-success pull-right" name="resizevm_mem">{% trans "Resize" %}</button>
 | 
			
		||||
                                        {% else %}
 | 
			
		||||
                                            <button class="btn btn-lg btn-success pull-right disabled">{% trans "Resize" %}</button>
 | 
			
		||||
                                        {% endifequal %}
 | 
			
		||||
                                    </form>
 | 
			
		||||
                                {% else %}
 | 
			
		||||
                                    {% trans "You don't have permission for resizing instance" %}
 | 
			
		||||
| 
						 | 
				
			
			@ -978,7 +974,6 @@
 | 
			
		|||
                                            </tr>
 | 
			
		||||
                                            </form>
 | 
			
		||||
                                            {% endfor %}
 | 
			
		||||
 | 
			
		||||
                                    {% endfor %}
 | 
			
		||||
                                    </tbody>
 | 
			
		||||
                                </table>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1052,7 +1052,7 @@ def get_host_instances(request, comp):
 | 
			
		|||
 | 
			
		||||
        conn.close()
 | 
			
		||||
    else:
 | 
			
		||||
        raise libvirtError("Problem occured with {} - {}".format(comp.name, status))
 | 
			
		||||
        raise libvirtError("Problem occurred with {} - {}".format(comp.name, status))
 | 
			
		||||
    return all_host_vms
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue