Skip to content

Commit

Permalink
NFS exports restored as read-only - continued 5 rockstor#2912
Browse files Browse the repository at this point in the history
- nfs_export_group.py comment correction & black formatting.
  • Loading branch information
phillxnet committed Nov 8, 2024
1 parent 06cc9be commit 2d039bd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/rockstor/storageadmin/models/nfs_export_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ class NFSExportGroup(models.Model):
INSECURE = "insecure"

"""hostname string in /etc/exports"""
host_str = models.CharField(max_length=4096, validators=[validators.validate_nfs_host_str])
host_str = models.CharField(
max_length=4096, validators=[validators.validate_nfs_host_str]
)
"""mount options"""
"""mount read only by default"""
MODIFY_CHOICES = (
(READ_ONLY, "ro"),
(READ_WRITE, "rw"),
Expand Down Expand Up @@ -69,4 +70,4 @@ class NFSExportGroup(models.Model):

class Meta:
app_label = "storageadmin"
ordering = ['-id']
ordering = ["-id"]

0 comments on commit 2d039bd

Please sign in to comment.