Fixed a type-o
This commit is contained in:
parent
85fd06fa8a
commit
fad2c36cd2
|
|
@ -52,10 +52,11 @@ def select_profile(options):
|
||||||
# Some crude safety checks, make sure the imported profile has
|
# Some crude safety checks, make sure the imported profile has
|
||||||
# a __name__ check and if so, check if it's got a _prep_function()
|
# a __name__ check and if so, check if it's got a _prep_function()
|
||||||
# we can call to ask for more user input.
|
# we can call to ask for more user input.
|
||||||
if '__name__' in source_data and '_prep_function' in source_data
|
if '__name__' in source_data and '_prep_function' in source_data:
|
||||||
with profile.load_instructions() as imported:
|
with profile.load_instructions() as imported:
|
||||||
if hasattr(imported, '_prep_function'):
|
if hasattr(imported, '_prep_function'):
|
||||||
return profile, imported
|
return profile, imported
|
||||||
|
|
||||||
return selected_profile
|
return selected_profile
|
||||||
|
|
||||||
raise RequirementError("Selecting profiles require a least one profile to be given as an option.")
|
raise RequirementError("Selecting profiles require a least one profile to be given as an option.")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue