@@ -584,7 +584,7 @@ def destroy(
584584
585585 def fmt (
586586 self ,
587- dir : str = None ,
587+ dir : Union [ str , List [ str ]] = None ,
588588 check : bool = False ,
589589 no_color : bool = True ,
590590 list : bool = None ,
@@ -626,7 +626,12 @@ def fmt(
626626 check = flag (check_input ),
627627 recursive = flag (recursive ),
628628 )
629- args = [dir ] if dir else None
629+ if dir :
630+ args = dir
631+ if not isinstance (dir , List ):
632+ args = [dir ]
633+ else :
634+ args = None
630635 retcode , stdout , stderr = self .run ('fmt' , args , options = options , chdir = self .cwd , check = check )
631636 return CommandResult (retcode , stdout , stderr , json = False )
632637
@@ -704,7 +709,6 @@ def import_resource(
704709 id : str ,
705710 check : bool = False ,
706711 config : str = None ,
707- allow_missing_config : bool = None ,
708712 input : bool = False ,
709713 lock : bool = None ,
710714 lock_timeout : str = None ,
@@ -745,7 +749,6 @@ def import_resource(
745749 to use to configure the provider. Defaults to pwd.
746750 If no config files are present, they must be provided
747751 via the input prompts or env vars.
748- :param allow_missing_config: True to allow import when no resource configuration block exists.
749752 :param input: False to disable interactive prompts. Note that some actions may
750753 require interactive prompts and will error if input is disabled.
751754 :param lock: False to not hold a state lock during backend migration.
@@ -763,7 +766,6 @@ def import_resource(
763766 """
764767 options .update (
765768 config = config ,
766- allow_missing_config = flag (allow_missing_config ),
767769 input = input ,
768770 lock = lock ,
769771 lock_timeout = lock_timeout ,
@@ -798,6 +800,7 @@ def output(
798800 :param json: Whether to load stdout as json.
799801 :param no_color: True to output not contain any color.
800802 :param state: Path to the state file to read. Defaults to "terraform.tfstate".
803+ Ignored when remote state is used.
801804 :param raw: For value types that can be automatically converted to a string,
802805 will print the raw string directly, rather than a human-oriented
803806 representation of the value.
0 commit comments