Skip to content

Commit

Permalink
Fixed spacing and lint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenny Woodson committed Jul 17, 2017
1 parent 199ce71 commit 94923be
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions roles/lib_openshift/library/oc_storageclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,8 @@ def create_dict(self):
if self.annotations is not None:
self.data['metadata']['annotations'] = self.annotations

self.data['metadata']['annotations']['storageclass.beta.kubernetes.io/is-default-class'] = self.default_storage_class
self.data['metadata']['annotations']['storageclass.beta.kubernetes.io/is-default-class'] = \
self.default_storage_class

if self.provisioner is None:
self.data['provisioner'] = 'kubernetes.io/aws-ebs'
Expand Down Expand Up @@ -1542,8 +1543,8 @@ def update(self):
'''update the object'''
# parameters are currently unable to be updated. need to delete and recreate
self.delete()
# pause here and attempt to wait for delete.
# Better option would be to poll
# pause here and attempt to wait for delete.
# Better option would be to poll
import time
time.sleep(5)
return self.create()
Expand Down
4 changes: 2 additions & 2 deletions roles/lib_openshift/src/class/oc_storageclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def update(self):
'''update the object'''
# parameters are currently unable to be updated. need to delete and recreate
self.delete()
# pause here and attempt to wait for delete.
# Better option would be to poll
# pause here and attempt to wait for delete.
# Better option would be to poll
import time
time.sleep(5)
return self.create()
Expand Down
3 changes: 2 additions & 1 deletion roles/lib_openshift/src/lib/storageclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def create_dict(self):
if self.annotations is not None:
self.data['metadata']['annotations'] = self.annotations

self.data['metadata']['annotations']['storageclass.beta.kubernetes.io/is-default-class'] = self.default_storage_class
self.data['metadata']['annotations']['storageclass.beta.kubernetes.io/is-default-class'] = \
self.default_storage_class

if self.provisioner is None:
self.data['provisioner'] = 'kubernetes.io/aws-ebs'
Expand Down

0 comments on commit 94923be

Please sign in to comment.