File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/ServiceManagement/Services/Commands.Utilities/Websites/Common Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 12
12
// limitations under the License.
13
13
// ----------------------------------------------------------------------------------
14
14
15
+ using Microsoft . WindowsAzure . Commands . Common ;
15
16
using Microsoft . WindowsAzure . Commands . Utilities . Common ;
16
17
17
18
namespace Microsoft . WindowsAzure . Commands . Utilities . Websites . Common
@@ -26,7 +27,8 @@ public IWebsitesClient WebsitesClient
26
27
{
27
28
if ( websitesClient == null )
28
29
{
29
- websitesClient = new WebsitesClient ( Profile , Profile . Context . Subscription , WriteDebug ) ;
30
+ var profile = Profile ?? AzureSMProfileProvider . Instance . Profile ;
31
+ websitesClient = new WebsitesClient ( profile , profile . Context . Subscription , WriteDebug ) ;
30
32
}
31
33
return websitesClient ;
32
34
}
You can’t perform that action at this time.
0 commit comments