Skip to content

Commit 4beae67

Browse files
author
Ryan Bartram
committed
Update to ChangeLog. Aswell as update Runbook enum to make apparently python version 2 is supported version
1 parent 8939bf3 commit 4beae67

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

src/ResourceManager/Automation/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
- Additional information about change #1
1919
-->
2020
## Current Release
21+
* Update to Import-AzureRMAutomationRunbook
22+
- Support is now being provided for Python2 runbooks
2123

2224
## Version 4.0.0
2325
* Add support for online help

src/ResourceManager/Automation/Commands.Automation/Cmdlet/ImportAzureAutomationRunbook.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class ImportAzureAutomationRunbook : AzureAutomationBaseCmdlet
6666
Constants.RunbookType.PowerShellWorkflow,
6767
Constants.RunbookType.GraphicalPowerShellWorkflow,
6868
Constants.RunbookType.Graph,
69-
Constants.RunbookType.Python,
69+
Constants.RunbookType.Python2,
7070
IgnoreCase = true)]
7171
[ValidateNotNullOrEmpty]
7272
public string Type { get; set; }

src/ResourceManager/Automation/Commands.Automation/Common/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public static class RunbookType
8686

8787
public const string GraphicalPowerShellWorkflow = "GraphicalPowerShellWorkflow";
8888

89-
public const string Python = "Python2";
89+
public const string Python2 = "Python2";
9090
}
9191

9292
public static class SupportedFileExtensions

src/ResourceManager/Automation/Commands.Automation/help/Import-AzureRMAutomationRunbook.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Import-AzureRmAutomationRunbook [-Path] <String> [-Description <String>] [-Name
2323
## DESCRIPTION
2424
The **Import-AzureRmAutomationRunbook** cmdlet imports an Azure Automation runbook. Specify the
2525
path to a wps_2 script (.ps1 ) file to import for wps_2 and wps_2 Workflow runbooks, or to a
26-
graphical runbook (.graphrunbook) file for graphical runbooks. The name of the file becomes the
26+
graphical runbook (.graphrunbook) file for graphical runbooks. (.py) files are required when importing python2 scripts The name of the file becomes the
2727
name of the runbook. For wps_2 Workflow runbooks, the script must contain a single wps_2 Workflow
2828
definition that matches the name of the file.
2929

@@ -218,7 +218,7 @@ Valid values are:
218218
- PowerShellWorkflow
219219
- GraphicalPowerShellWorkflow
220220
- Graph
221-
- Python
221+
- Python2
222222
223223
The value Graph is obsolete.
224224
It is equivalent to GraphicalPowerShellWorkflow.

0 commit comments

Comments
 (0)