Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions powershell/module/module-class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ export class NewModuleClass extends Class {
const ArgumentCompleter = this.add(new Property('ArgumentCompleter', argumentCompleterDelegate, { description: 'Gets completion data for azure specific fields' }));
const ProfileName = this.add(new Property('ProfileName', System.String, { description: 'The name of the currently selected Azure profile' }));

const moduleIdentity = this.add(new LambdaProperty('Name', dotnet.String, new StringExpression(this.state.project.moduleName), { description: 'The Name of this module ' }));
const moduleIdentity = this.add(new LambdaProperty('Name', dotnet.String, new StringExpression((this.state.project.rootModuleName ?? '').length === 0 ? this.state.project.moduleName : this.state.project.rootModuleName), { description: 'The Name of this module ' }));
const currentProfile = this.add(new Field('Profile', dotnet.String, { initialValue: System.String.Empty, description: 'The currently selected profile.' }));
const moduleResourceId = this.add(new LambdaProperty('ResourceId', dotnet.String, new StringExpression(this.state.project.moduleName), { description: 'The ResourceID for this module (azure arm).' }));
const moduleResourceId = this.add(new LambdaProperty('ResourceId', dotnet.String, new StringExpression((this.state.project.rootModuleName ?? '').length === 0 ? this.state.project.moduleName : this.state.project.rootModuleName), { description: 'The ResourceID for this module (azure arm).' }));

/* get parameter method (calls azAccounts) */
this.add(new LambdaMethod('GetParameter', dotnet.Object, new LiteralExpression(`${GetParameterValue.value}?.Invoke( ${moduleResourceId.value}, ${moduleIdentity.value}, ${$this.pInvocationInfo.value}, ${$this.pCorrelationId.value},${$this.pParameterName.value} )`), {
Expand Down
Loading