sg3-141-592 / AzStartStop

Self service user interface for starting and stopping VMs on demand
https://vmstartstopdemo.compactcloud.co.uk/
MIT License
22 stars 2 forks source link

Error 500 #15

Open naudski opened 3 weeks ago

naudski commented 3 weeks ago

Hi,

I deployed your app to try it out. Did everything you described in your manual. But when I try to access the website it finds the Azure Subscription, but then returns an error 500. Error: 500 'NoneType' object has no attribute 'windows_configuration' Any ideas?

Best regards, Arnaud

naudski commented 3 weeks ago

I think the error comes from the cache.py file in Utilities:

def get_price(currency, vm): vm_type = "Linux" if vm.os_profile.windows_configuration: vm_type = "Windows"

sg3-141-592 commented 2 weeks ago

Hey @naudski , thanks for raising this. I've not been able to find the particular VM type you'd need to have a VM that doesn't have windows_configuration but I've added some defensive code to ensure that setting exists before trying to access it #16 .

Do you know if you've got any interesting VMs in the subscription you're getting an error for like Windows Classic VMs or unusual Operating Systems? I've not been able to recreate this issue yet.

I've just pushed a new version of the App v1.4. Your VM Start Stop should update automatically with 24 hours, if you could let me know if you're still seeing this issue.

image