lib/ohai/plugins/linux/hostname.rb in kurchatov-0.0.5.pre5 vs lib/ohai/plugins/linux/hostname.rb in kurchatov-0.0.5
- old
+ new
@@ -14,13 +14,13 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
-provides "hostname", "fqdn"
+provides 'hostname', 'fqdn'
-hostname from("hostname -s")
+hostname from('hostname -s')
begin
- fqdn from("hostname --fqdn")
+ fqdn from('hostname --fqdn')
rescue
- Ohai::Log.debug("hostname -f returned an error, probably no domain is set")
+ Ohai::Log.debug('hostname -f returned an error, probably no domain is set')
end