Skip to content

Discard master-slave vocabulary #1

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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 google-cloud-sdk/platform/gsutil/gslib/addlhelp/naming.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@
user who creates the bucket, so the user who creates the bucket must
also be verified as an owner or manager of the domain.

To verify as the owner or manager of a domain, use the Google Webmaster
Tools verification process. The Webmaster Tools verification process
To verify as the owner or manager of a domain, use the Google Webmain
Tools verification process. The Webmain Tools verification process
provides three methods for verifying an owner or manager of a domain:

1. Adding a special Meta tag to a site's homepage.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@
Service Account authentication and that the Service Account's project is
authorized for the application URL. Notification endpoint URLs must also be
whitelisted in your Cloud Console project. To do that, the domain must also be
verified using Google Webmaster Tools. For instructions, please see:
verified using Google Webmain Tools. For instructions, please see:

https://cloud.google.com/storage/docs/object-change-notification#_Authorization
"""
Expand Down
2 changes: 1 addition & 1 deletion google-cloud-sdk/platform/gsutil/gslib/ui_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ def Call(self, status_message, stream, cur_time=None):


class MainThreadUIQueue(object):
"""Handles status display and processing in the main thread / master process.
"""Handles status display and processing in the main thread / main process.

This class emulates a queue to cover main-thread activity before or after
Apply, as well as for the single-threaded, single-process case, i.e.,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def Add(self, service, method, request, global_params=None):
method_config, request, global_params=global_params,
upload_config=upload_config)

# Create the request and add it to our master list.
# Create the request and add it to our main list.
api_request = self.ApiCall(
http_request, self.retryable_codes, service, method_config)
self.api_requests.append(api_request)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ def get_files_for_linting(allow_limited=True, diff_base=None):
uses a specific commit or branch (a so-called diff base) to compare
against for changed files. (This requires ``allow_limited=True``.)

To speed up linting on Travis pull requests against master, we manually
set the diff base to origin/master. We don't do this on non-pull requests
since origin/master will be equivalent to the currently checked out code.
To speed up linting on Travis pull requests against main, we manually
set the diff base to origin/main. We don't do this on non-pull requests
since origin/main will be equivalent to the currently checked out code.
One could potentially use ${TRAVIS_COMMIT_RANGE} to find a diff base but
this value is not dependable.

Expand All @@ -126,14 +126,14 @@ def get_files_for_linting(allow_limited=True, diff_base=None):
linted.
"""
if os.getenv('TRAVIS') == 'true':
# In travis, don't default to master.
# In travis, don't default to main.
diff_base = None

if (os.getenv('TRAVIS_BRANCH') == 'master' and
if (os.getenv('TRAVIS_BRANCH') == 'main' and
os.getenv('TRAVIS_PULL_REQUEST') != 'false'):
# In the case of a pull request into master, we want to
# diff against HEAD in master.
diff_base = 'origin/master'
# In the case of a pull request into main, we want to
# diff against HEAD in main.
diff_base = 'origin/main'

if diff_base is not None and allow_limited:
result = subprocess.check_output(['git', 'diff', '--name-only',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
# The encoding of source files.
#source_encoding = 'utf-8-sig'

# The master toctree document.
master_doc = 'index'
# The main toctree document.
main_doc = 'index'

# General information about the project.
project = u'argcomplete'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ def create_job(self, pipeline_id=None, input_name=None, output=None,
:type playlists: list
:param playlists: If you specify a preset in `PresetId` for which the
value of `Container` is ts (MPEG-TS), Playlists contains
information about the master playlists that you want Elastic
information about the main playlists that you want Elastic
Transcoder to create.
We recommend that you create only one master playlist. The maximum
number of master playlists in a job is 30.
We recommend that you create only one main playlist. The maximum
number of main playlists in a job is 30.

"""
uri = '/2012-09-25/jobs'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ def modify_instance_groups(self, instance_group_ids, new_sizes):

def run_jobflow(self, name, log_uri=None, ec2_keyname=None,
availability_zone=None,
master_instance_type='m1.small',
slave_instance_type='m1.small', num_instances=1,
main_instance_type='m1.small',
subordinate_instance_type='m1.small', num_instances=1,
action_on_failure='TERMINATE_JOB_FLOW', keep_alive=False,
enable_debugging=False,
hadoop_version=None,
Expand All @@ -436,11 +436,11 @@ def run_jobflow(self, name, log_uri=None, ec2_keyname=None,
:type availability_zone: str
:param availability_zone: EC2 availability zone of the cluster

:type master_instance_type: str
:param master_instance_type: EC2 instance type of the master
:type main_instance_type: str
:param main_instance_type: EC2 instance type of the main

:type slave_instance_type: str
:param slave_instance_type: EC2 instance type of the slave nodes
:type subordinate_instance_type: str
:param subordinate_instance_type: EC2 instance type of the subordinate nodes

:type num_instances: int
:param num_instances: Number of instances in the Hadoop cluster
Expand Down Expand Up @@ -471,7 +471,7 @@ def run_jobflow(self, name, log_uri=None, ec2_keyname=None,
:param instance_groups: Optional list of instance groups to
use when creating this job.
NB: When provided, this argument supersedes num_instances
and master/slave_instance_type.
and main/subordinate_instance_type.

:type ami_version: str
:param ami_version: Amazon Machine Image (AMI) version to use
Expand Down Expand Up @@ -526,15 +526,15 @@ def run_jobflow(self, name, log_uri=None, ec2_keyname=None,
params.update(common_params)

# NB: according to the AWS API's error message, we must
# "configure instances either using instance count, master and
# slave instance type or instance groups but not both."
# "configure instances either using instance count, main and
# subordinate instance type or instance groups but not both."
#
# Thus we switch here on the truthiness of instance_groups.
if not instance_groups:
# Instance args (the common case)
instance_params = self._build_instance_count_and_type_args(
master_instance_type,
slave_instance_type,
main_instance_type,
subordinate_instance_type,
num_instances)
params.update(instance_params)
else:
Expand Down Expand Up @@ -721,15 +721,15 @@ def _build_instance_common_args(self, ec2_keyname, availability_zone,

return params

def _build_instance_count_and_type_args(self, master_instance_type,
slave_instance_type, num_instances):
def _build_instance_count_and_type_args(self, main_instance_type,
subordinate_instance_type, num_instances):
"""
Takes a master instance type (string), a slave instance type
Takes a main instance type (string), a subordinate instance type
(string), and a number of instances. Returns a comparable dict
for use in making a RunJobFlow request.
"""
params = {'Instances.MasterInstanceType': master_instance_type,
'Instances.SlaveInstanceType': slave_instance_type,
params = {'Instances.MainInstanceType': main_instance_type,
'Instances.SubordinateInstanceType': subordinate_instance_type,
'Instances.InstanceCount': num_instances}
return params

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def __init__(self, name, mapper, reducer=None, combiner=None,
:param output: The output uri
:type jar: str
:param jar: The hadoop streaming jar. This can be either a local
path on the master node, or an s3:// URI.
path on the main node, or an s3:// URI.
"""
self.name = name
self.mapper = mapper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _required_auth_capability(self):

def create_alias(self, alias_name, target_key_id):
"""
Creates a display name for a customer master key. An alias can
Creates a display name for a customer main key. An alias can
be used to identify a key and should be unique. The console
enforces a one-to-one mapping between the alias and a key. An
alias name can contain only alphanumeric characters, forward
Expand Down Expand Up @@ -174,7 +174,7 @@ def create_grant(self, key_id, grantee_principal,
#. RevokeGrant

:type key_id: string
:param key_id: A unique key identifier for a customer master key. This
:param key_id: A unique key identifier for a customer main key. This
value can be a globally unique identifier, an ARN, or an alias.

:type grantee_principal: string
Expand Down Expand Up @@ -222,7 +222,7 @@ def create_grant(self, key_id, grantee_principal,

def create_key(self, policy=None, description=None, key_usage=None):
"""
Creates a customer master key. Customer master keys can be
Creates a customer main key. Customer main keys can be
used to encrypt small amounts of data (less than 4K) directly,
but they are most commonly used to encrypt or envelope data
keys that are then used to encrypt customer data. For more
Expand Down Expand Up @@ -306,10 +306,10 @@ def delete_alias(self, alias_name):
def describe_key(self, key_id):
"""
Provides detailed information about the specified customer
master key.
main key.

:type key_id: string
:param key_id: Unique identifier of the customer master key to be
:param key_id: Unique identifier of the customer main key to be
described. This can be an ARN, an alias, or a globally unique
identifier.

Expand All @@ -323,7 +323,7 @@ def disable_key(self, key_id):
Marks a key as disabled, thereby preventing its use.

:type key_id: string
:param key_id: Unique identifier of the customer master key to be
:param key_id: Unique identifier of the customer main key to be
disabled. This can be an ARN, an alias, or a globally unique
identifier.

Expand All @@ -337,7 +337,7 @@ def disable_key_rotation(self, key_id):
Disables rotation of the specified key.

:type key_id: string
:param key_id: Unique identifier of the customer master key for which
:param key_id: Unique identifier of the customer main key for which
rotation is to be disabled. This can be an ARN, an alias, or a
globally unique identifier.

Expand All @@ -352,7 +352,7 @@ def enable_key(self, key_id):
have up to 25 enabled keys at one time.

:type key_id: string
:param key_id: Unique identifier of the customer master key to be
:param key_id: Unique identifier of the customer main key to be
enabled. This can be an ARN, an alias, or a globally unique
identifier.

Expand All @@ -363,10 +363,10 @@ def enable_key(self, key_id):

def enable_key_rotation(self, key_id):
"""
Enables rotation of the specified customer master key.
Enables rotation of the specified customer main key.

:type key_id: string
:param key_id: Unique identifier of the customer master key for which
:param key_id: Unique identifier of the customer main key for which
rotation is to be enabled. This can be an ARN, an alias, or a
globally unique identifier.

Expand All @@ -378,11 +378,11 @@ def enable_key_rotation(self, key_id):
def encrypt(self, key_id, plaintext, encryption_context=None,
grant_tokens=None):
"""
Encrypts plaintext into ciphertext by using a customer master
Encrypts plaintext into ciphertext by using a customer main
key.

:type key_id: string
:param key_id: Unique identifier of the customer master. This can be an
:param key_id: Unique identifier of the customer main. This can be an
ARN, an alias, or the Key ID.

:type plaintext: blob
Expand Down Expand Up @@ -420,7 +420,7 @@ def generate_data_key(self, key_id, encryption_context=None,
grant_tokens=None):
"""
Generates a secure data key. Data keys are used to encrypt and
decrypt data. They are wrapped by customer master keys.
decrypt data. They are wrapped by customer main keys.

:type key_id: string
:param key_id: Unique identifier of the key. This can be an ARN, an
Expand Down Expand Up @@ -472,7 +472,7 @@ def generate_data_key_without_plaintext(self, key_id,
number_of_bytes=None,
grant_tokens=None):
"""
Returns a key wrapped by a customer master key without the
Returns a key wrapped by a customer main key without the
plaintext copy of that key. To retrieve the plaintext, see
GenerateDataKey.

Expand Down Expand Up @@ -651,7 +651,7 @@ def list_key_policies(self, key_id, limit=None, marker=None):

def list_keys(self, limit=None, marker=None):
"""
Lists the customer master keys.
Lists the customer main keys.

:type limit: integer
:param limit: Specify this parameter only when paginating results to
Expand Down Expand Up @@ -702,7 +702,7 @@ def re_encrypt(self, ciphertext_blob, destination_key_id,
source_encryption_context=None,
destination_encryption_context=None, grant_tokens=None):
"""
Encrypts data on the server side with a new customer master
Encrypts data on the server side with a new customer main
key without exposing the plaintext of the data on the client
side. The data is first decrypted and then encrypted. This
operation can also be used to change the encryption context of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2124,7 +2124,7 @@ def register_rds_db_instance(self, stack_id, rds_db_instance_arn,
:param rds_db_instance_arn: The Amazon RDS instance's ARN.

:type db_user: string
:param db_user: The database's master user name.
:param db_user: The database's main user name.

:type db_password: string
:param db_password: The database password.
Expand Down Expand Up @@ -2785,7 +2785,7 @@ def update_rds_db_instance(self, rds_db_instance_arn, db_user=None,
:param rds_db_instance_arn: The Amazon RDS instance's ARN.

:type db_user: string
:param db_user: The master user name.
:param db_user: The main user name.

:type db_password: string
:param db_password: The database password.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def load_boto(self):
if update.find(':') >= 0:
method, version = update.split(':')
else:
version = 'master'
version = 'main'
self.run('git checkout %s' % version, cwd=location)
else:
# first remove the symlink needed when running from subversion
Expand Down
Loading