Skip to content
This repository was archived by the owner on Feb 3, 2021. It is now read-only.

Conversation

@paselem
Copy link
Contributor

@paselem paselem commented Jun 14, 2017

No description provided.

@msftclas
Copy link

@paselem,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


if args.custom_script is not None:
_custom_script = args.custom_script
print("path to custom script: %s" % _custom_script)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

minor: going forward I usually prefer print('foo {}'.format('myString')). Do you have an opinion?

clusterlib.create_cluster(
batch_client,
blob_client,
_custom_script,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

why do some variables start with _ and not others?


run_custom_script = ''
if custom_script_file is not None:
run_custom_script = '/bin/sh -c ' + custom_script_file
Copy link
Contributor Author

Choose a reason for hiding this comment

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

use '/bin/sh -c {}'.format(custom_script_file)

def cluster_install_cmd():
def cluster_install_cmd(custom_script_file):

run_custom_script = ''
Copy link
Contributor Author

Choose a reason for hiding this comment

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

some places use "", while other use ''. We should consolidate on one.

Copy link
Contributor Author

@paselem paselem left a comment

Choose a reason for hiding this comment

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

Please view my feedbck

@jiata jiata merged commit 4952e22 into master Jun 15, 2017
@jiata
Copy link
Contributor

jiata commented Jun 15, 2017

i will disregard your comments for this PR and create a separate work item which would be to consolidate syntax.

@jiata jiata deleted the feature/custom-script branch June 15, 2017 04:50
@paselem
Copy link
Contributor Author

paselem commented Jun 15, 2017 via email

jafreck pushed a commit to jafreck/aztk that referenced this pull request Aug 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants