Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DNM]VXFM-10032 Datastore Resize #320

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

abhrakardell
Copy link

@srupak @gavin-scott @sushilrai

Please review the approach and provide your feedback

def datastore_size=(value)
datastoreExpandOption = host.configManager.datastoreSystem.QueryVmfsDatastoreExpandOptions(:datastore => @datastore)
expandSpec = datastoreExpandOption[0].spec
host.configManager.datastoreSystem.ExpandVmfsDatastore(:datastore => @datastore, :spec => expandSpec)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually a change like this would be done in the create method which the puppet framework will call if the exists? method returns false and ensure=present. I'm not sure at what time exactly the above setter will be called. But if it works for you I guess it should be ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants