Fixed passing share_server to ensure_share

Change-Id: I7f0d65067f88760f8ff32c9780c79c7920879dab
Closes-Bug: #1330892
Merge "Fixed passing share_server to ensure_share"