Skip to content

Commit

Permalink
Reinstate kind in remove_plugin for backcompat
Browse files Browse the repository at this point in the history
  • Loading branch information
Frassle committed Oct 23, 2022
1 parent beca311 commit 662229e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sdk/nodejs/automation/localWorkspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,8 @@ export class LocalWorkspace implements Workspace {
* e.g. "1.0.0", ">1.0.0".
* @param kind he kind of plugin, defaults to "resource".
*/
async removePlugin(name?: string, versionRange?: string): Promise<void> {
const args = ["plugin", "rm", "resource"];
async removePlugin(name?: string, versionRange?: string, kind = "resource"): Promise<void> {
const args = ["plugin", "rm", kind];
if (name) {
args.push(name);
}
Expand Down
3 changes: 2 additions & 1 deletion sdk/python/lib/pulumi/automation/_local_workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,9 @@ def remove_plugin(
self,
name: Optional[str] = None,
version_range: Optional[str] = None,
kind: str = "resource",
) -> None:
args = ["plugin", "rm", "resource"]
args = ["plugin", "rm", kind]
if name:
args.append(name)
if version_range:
Expand Down
1 change: 1 addition & 0 deletions sdk/python/lib/pulumi/automation/_workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ def remove_plugin(
self,
name: Optional[str] = None,
version_range: Optional[str] = None,
kind: str = "resource",
) -> None:
"""
Removes a plugin from the Workspace matching the specified name and version.
Expand Down

0 comments on commit 662229e

Please sign in to comment.