Skip to content
This repository was archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Fix: remove deprecated vm_count call (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
jafreck authored Jun 1, 2018
1 parent e5e529a commit dbde8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aztk/models/cluster_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,5 @@ def __validate__(self) -> bool:
if self.custom_scripts:
deprecate("Custom scripts are DEPRECATED and will be removed in 0.8.0. Use plugins instead See https://aztk.readthedocs.io/en/v0.7.0/15-plugins.html")

if self.scheduling_target == SchedulingTarget.Dedicated and self.vm_count == 0:
if self.scheduling_target == SchedulingTarget.Dedicated and self.size == 0:
raise error.InvalidModelError("Scheduling target cannot be Dedicated if dedicated vm size is 0")

0 comments on commit dbde8bc

Please sign in to comment.